mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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 hyper::method::Method;
|
||||
use hyper::mime::{mod, Mime};
|
||||
use hyper::mime::{Mime, TopLevel, SubLevel, Attr, Value};
|
||||
use hyper::header::Headers;
|
||||
use hyper::header::common::ContentType;
|
||||
use fetch::cors_cache::CORSCache;
|
||||
|
@ -119,8 +119,8 @@ impl Request {
|
|||
Some(s) if s.as_slice() == "blank" => {
|
||||
let mut response = Response::new();
|
||||
response.headers.set(ContentType(Mime(
|
||||
mime::TopLevel::Text, mime::SubLevel::Html,
|
||||
vec![(mime::Attr::Charset, mime::Value::Utf8)])));
|
||||
TopLevel::Text, SubLevel::Html,
|
||||
vec![(Attr::Charset, Value::Utf8)])));
|
||||
response
|
||||
},
|
||||
_ => Response::network_error()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue