diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-05-23 19:49:53 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-05-24 00:01:49 -0400 |
commit | 8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch) | |
tree | 2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/net/fetch/request.rs | |
parent | 7561f7b83f27811683c1e724d75a935573a72813 (diff) | |
download | servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.tar.gz servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.zip |
Reduce max line length from 150 to 120 characters
Part of https://github.com/servo/servo/issues/6041
Diffstat (limited to 'components/net/fetch/request.rs')
-rw-r--r-- | components/net/fetch/request.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/components/net/fetch/request.rs b/components/net/fetch/request.rs index c5e1a4a5f59..2e1c53a8c77 100644 --- a/components/net/fetch/request.rs +++ b/components/net/fetch/request.rs @@ -224,7 +224,8 @@ impl Request { } /// [HTTP fetch](https://fetch.spec.whatwg.org#http-fetch) - pub fn http_fetch(&mut self, cors_flag: bool, cors_preflight_flag: bool, authentication_fetch_flag: bool) -> Response { + pub fn http_fetch(&mut self, cors_flag: bool, cors_preflight_flag: bool, + authentication_fetch_flag: bool) -> Response { // Step 1 let mut response: Option<Response> = None; // Step 2 @@ -333,7 +334,9 @@ impl Request { self.same_origin_data = false; // Step 10 if self.redirect_mode == RedirectMode::Follow { - // FIXME: Origin method of the Url crate hasn't been implemented (https://github.com/servo/rust-url/issues/54) + // FIXME: Origin method of the Url crate hasn't been implemented + // https://github.com/servo/rust-url/issues/54 + // Substep 1 // if cors_flag && location_url.origin() != self.url.origin() { self.origin = None; } // Substep 2 @@ -387,7 +390,9 @@ impl Request { } /// [HTTP network or cache fetch](https://fetch.spec.whatwg.org#http-network-or-cache-fetch) - pub fn http_network_or_cache_fetch(&mut self, _credentials_flag: bool, _authentication_fetch_flag: bool) -> Response { + pub fn http_network_or_cache_fetch(&mut self, + _credentials_flag: bool, + _authentication_fetch_flag: bool) -> Response { // TODO: Implement HTTP network or cache fetch spec Response::network_error() } |