aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/about_loader.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-08-12 14:46:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-08-12 18:37:27 +0200
commit7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5 (patch)
tree7c3323204e3fb5d85edcb95b97748962e3978ae1 /components/net/about_loader.rs
parenta22913569c2fa917015b23c27cb2f55de2a69ff2 (diff)
downloadservo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.tar.gz
servo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.zip
Update serde to 0.8 (fixes #12659)
Diffstat (limited to 'components/net/about_loader.rs')
-rw-r--r--components/net/about_loader.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/net/about_loader.rs b/components/net/about_loader.rs
index 937c2806eb3..29f598f3cdf 100644
--- a/components/net/about_loader.rs
+++ b/components/net/about_loader.rs
@@ -6,6 +6,7 @@ use file_loader;
use hyper::header::ContentType;
use hyper::http::RawStatus;
use hyper::mime::{Mime, SubLevel, TopLevel};
+use hyper_serde::Serde;
use mime_classifier::MimeClassifier;
use net_traits::ProgressMsg::Done;
use net_traits::response::HttpsState;
@@ -33,10 +34,11 @@ pub fn factory(mut load_data: LoadData,
"blank" => {
let metadata = Metadata {
final_url: load_data.url,
- content_type: Some(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![]))),
+ content_type:
+ Some(Serde(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![])))),
charset: Some("utf-8".to_owned()),
headers: None,
- status: Some(RawStatus(200, "OK".into())),
+ status: Some(Serde(RawStatus(200, "OK".into()))),
https_state: HttpsState::None,
referrer: None,
};