raaahahhhh what the fuck is a config marker

This commit is contained in:
CoolElectronics 2024-01-13 23:41:50 -05:00
parent 9529c011f0
commit 05d55eada3
No known key found for this signature in database
GPG key ID: F63593D168636C50

View file

@ -415,15 +415,10 @@ impl WsTcp {
if let Ok(jv) = Reflect::get(&raw_headers, &jval!(k.to_string())) {
if jv.is_array() {
let arr = Array::from(&jv);
arr.push(&jval!(v.to_str().unwrap().to_string()));
let _ = Reflect::set(&raw_headers, &jval!(k.to_string()), &arr);
} else if !jv.is_falsy() {
let arr = Array::new();
arr.push(&jv);
arr.push(&jval!(v.to_str().unwrap().to_string()));
let _ = Reflect::set(&raw_headers, &jval!(k.to_string()), &arr);
} else {
arr.push(&jval!(v.to_str()?.to_string()));
let _ = Reflect::set(&raw_headers, &jval!(k.to_string()), &arr);
} else if jv.is_truthy() {
let _ = Reflect::set(
&raw_headers,
&jval!(k.to_string()),