diff options
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, }; |