diff --git a/src/rust-http-client b/src/rust-http-client index 0fe29122c25..d8fea132cd6 160000 --- a/src/rust-http-client +++ b/src/rust-http-client @@ -1 +1 @@ -Subproject commit 0fe29122c25f5fd8b00270dc96821df774d43745 +Subproject commit d8fea132cd638cecace5734a333f56bca144d03a diff --git a/src/servo/resource/http_loader.rs b/src/servo/resource/http_loader.rs index fdde14d7a6d..627303df652 100644 --- a/src/servo/resource/http_loader.rs +++ b/src/servo/resource/http_loader.rs @@ -4,10 +4,7 @@ import comm::{chan, methods}; import task::spawn; import resource_task::{ProgressMsg, Payload, Done}; import std::net::url::url; -import http_client::{ - uv_http_request, - Uri -}; +import http_client::{uv_http_request}; import result::{ok, err}; fn factory(url: url, progress_chan: chan) { @@ -15,7 +12,7 @@ fn factory(url: url, progress_chan: chan) { do spawn { #debug("http_loader: requesting via http: %?", url); - let request = uv_http_request(url_to_http_client_uri(url)); + let request = uv_http_request(url); let errored = @mut false; do request.begin |event| { alt event { @@ -39,10 +36,3 @@ fn factory(url: url, progress_chan: chan) { } } } - -fn url_to_http_client_uri(url: url) -> Uri { - { - host: url.host, - path: url.path - } -} \ No newline at end of file