mirror of
https://github.com/servo/servo.git
synced 2025-07-12 09:53:40 +01:00
Update hyper to 0.12
This commit is contained in:
parent
95bfaa0a77
commit
024b40b39d
122 changed files with 3835 additions and 3448 deletions
|
@ -22,7 +22,7 @@ euclid = "0.19"
|
|||
embedder_traits = { path = "../embedder_traits" }
|
||||
gfx = {path = "../gfx"}
|
||||
gfx_traits = {path = "../gfx_traits"}
|
||||
hyper = "0.10"
|
||||
http = "0.1"
|
||||
ipc-channel = "0.11"
|
||||
layout_traits = {path = "../layout_traits"}
|
||||
keyboard-types = {version = "0.4.2-servo", features = ["serde"]}
|
||||
|
|
|
@ -20,7 +20,7 @@ extern crate euclid;
|
|||
extern crate gaol;
|
||||
extern crate gfx;
|
||||
extern crate gfx_traits;
|
||||
extern crate hyper;
|
||||
extern crate http;
|
||||
extern crate ipc_channel;
|
||||
extern crate keyboard_types;
|
||||
extern crate layout_traits;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//! Any redirects that are encountered are followed. Whenever a non-redirect
|
||||
//! response is received, it is forwarded to the appropriate script thread.
|
||||
|
||||
use hyper::header::Location;
|
||||
use http::header::LOCATION;
|
||||
use ipc_channel::ipc;
|
||||
use ipc_channel::router::ROUTER;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
|
@ -99,7 +99,7 @@ impl NetworkListener {
|
|||
};
|
||||
|
||||
match metadata.headers {
|
||||
Some(ref headers) if headers.has::<Location>() => {
|
||||
Some(ref headers) if headers.contains_key(LOCATION) => {
|
||||
if self.req_init.url_list.is_empty() {
|
||||
self.req_init.url_list.push(self.req_init.url.clone());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue