mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix warnings in net.
This commit is contained in:
parent
2ca59b3f5b
commit
b25564440d
5 changed files with 20 additions and 14 deletions
|
@ -55,7 +55,7 @@ fn load(load_data: LoadData, start_chan: Sender<TargetedLoadResponse>) {
|
|||
let mut ct_str = parts[0];
|
||||
if ct_str.ends_with(";base64") {
|
||||
is_base64 = true;
|
||||
ct_str = ct_str.slice_to(ct_str.as_bytes().len() - 7);
|
||||
ct_str = &ct_str[..ct_str.as_bytes().len() - 7];
|
||||
}
|
||||
|
||||
// Parse the content type using rust-http.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue