mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
raaahahhhh what the fuck is a config marker
This commit is contained in:
parent
9529c011f0
commit
05d55eada3
1 changed files with 3 additions and 8 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue