mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add methods to move ByteStrings underlying bytes
Add methods to move the underlying Vec<u8> for ByteString.
This commit is contained in:
parent
184c7dbd47
commit
d23774d3d7
4 changed files with 32 additions and 1 deletions
|
@ -435,7 +435,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
None => {}
|
||||
}
|
||||
|
||||
headers.set_raw(name_str.to_owned(), vec![value.to_vec()]);
|
||||
headers.set_raw(name_str.to_owned(), vec![value.into()]);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue