aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/http_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/http_loader.rs')
-rw-r--r--components/net/http_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index ccfca4deb26..d8b909f88f3 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -85,7 +85,7 @@ fn load(load_data: LoadData, start_chan: Sender<TargetedLoadResponse>) {
// FIXME(seanmonstar): use AcceptEncoding from Hyper once available
//if !req.headers.has::<AcceptEncoding>() {
// We currently don't support HTTP Compression (FIXME #2587)
- req.headers_mut().set_raw("Accept-Encoding", vec![b"identity".to_vec()]);
+ req.headers_mut().set_raw("Accept-Encoding".into_string(), vec![b"identity".to_vec()]);
//}
let writer = match load_data.data {
Some(ref data) => {