mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Import enums inside hyper::mime rather than the module.
This commit is contained in:
parent
6e027cda2d
commit
79d0527978
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
use url::Url;
|
use url::Url;
|
||||||
use hyper::method::Method;
|
use hyper::method::Method;
|
||||||
use hyper::mime::{mod, Mime};
|
use hyper::mime::{Mime, TopLevel, SubLevel, Attr, Value};
|
||||||
use hyper::header::Headers;
|
use hyper::header::Headers;
|
||||||
use hyper::header::common::ContentType;
|
use hyper::header::common::ContentType;
|
||||||
use fetch::cors_cache::CORSCache;
|
use fetch::cors_cache::CORSCache;
|
||||||
|
@ -119,8 +119,8 @@ impl Request {
|
||||||
Some(s) if s.as_slice() == "blank" => {
|
Some(s) if s.as_slice() == "blank" => {
|
||||||
let mut response = Response::new();
|
let mut response = Response::new();
|
||||||
response.headers.set(ContentType(Mime(
|
response.headers.set(ContentType(Mime(
|
||||||
mime::TopLevel::Text, mime::SubLevel::Html,
|
TopLevel::Text, SubLevel::Html,
|
||||||
vec![(mime::Attr::Charset, mime::Value::Utf8)])));
|
vec![(Attr::Charset, Value::Utf8)])));
|
||||||
response
|
response
|
||||||
},
|
},
|
||||||
_ => Response::network_error()
|
_ => Response::network_error()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue