mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 14:30:02 -04:00
merge and stuff
This commit is contained in:
commit
9529c011f0
1 changed files with 8 additions and 1 deletions
|
@ -423,10 +423,17 @@ impl WsTcp {
|
|||
arr.push(&jval!(v.to_str().unwrap().to_string()));
|
||||
let _ = Reflect::set(&raw_headers, &jval!(k.to_string()), &arr);
|
||||
} else {
|
||||
|
||||
let _ = Reflect::set(
|
||||
&raw_headers,
|
||||
&jval!(k.to_string()),
|
||||
&jval!(v.to_str().unwrap().to_string()),
|
||||
&Array::of2(&jv, &jval!(v.to_str()?.to_string())),
|
||||
);
|
||||
} else {
|
||||
let _ = Reflect::set(
|
||||
&raw_headers,
|
||||
&jval!(k.to_string()),
|
||||
&jval!(v.to_str()?.to_string()),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue