diff options
author | Malisa Smith <malisa.tsmith@gmail.com> | 2016-08-05 16:18:55 -0700 |
---|---|---|
committer | Malisa Smith <malisa.tsmith@gmail.com> | 2016-09-06 19:58:32 -0700 |
commit | faf32a7cfbaf568bbfeb4f2572ea96b6a30d231e (patch) | |
tree | ba4e45620f417135cb8236f59e8d4f9ceef16400 /components/net/blob_loader.rs | |
parent | 569599d40426eda9c6acc86e58c35a423ba742be (diff) | |
download | servo-faf32a7cfbaf568bbfeb4f2572ea96b6a30d231e.tar.gz servo-faf32a7cfbaf568bbfeb4f2572ea96b6a30d231e.zip |
dom::Response implementation
Diffstat (limited to 'components/net/blob_loader.rs')
-rw-r--r-- | components/net/blob_loader.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/net/blob_loader.rs b/components/net/blob_loader.rs index 5cad922802a..1fe15d9a4a5 100644 --- a/components/net/blob_loader.rs +++ b/components/net/blob_loader.rs @@ -5,7 +5,6 @@ use filemanager_thread::{FileManager, UIProvider}; use hyper::header::{DispositionType, ContentDisposition, DispositionParam}; use hyper::header::{Headers, ContentType, ContentLength, Charset}; -use hyper::http::RawStatus; use hyper_serde::Serde; use ipc_channel::ipc; use mime::{Mime, Attr}; @@ -72,7 +71,7 @@ fn load_blob<UI: 'static + UIProvider> charset: charset.map(|c| c.as_str().to_string()), headers: Some(Serde(headers)), // https://w3c.github.io/FileAPI/#TwoHundredOK - status: Some(Serde(RawStatus(200, "OK".into()))), + status: Some((200, b"OK".to_vec())), https_state: HttpsState::None, referrer: None, }; |