diff options
author | Otávio Pace <otaviopp8@gmail.com> | 2019-10-05 12:56:16 -0300 |
---|---|---|
committer | Otávio Pace <otaviopp8@gmail.com> | 2019-10-07 08:23:44 -0300 |
commit | a1acd293392df28e0261734cf5ff83ba95bd7e32 (patch) | |
tree | 7aac42bb50a199846b4a8fa65258dae73d80d662 /components/script/dom/response.rs | |
parent | 1318ea9d0245b7a768d61be6727122cf93b3a834 (diff) | |
download | servo-a1acd293392df28e0261734cf5ff83ba95bd7e32.tar.gz servo-a1acd293392df28e0261734cf5ff83ba95bd7e32.zip |
response: remove text from default statusCode
According to the specification the text of the
default statusCode should be empty.
Reference: https://fetch.spec.whatwg.org/#concept-response-status-message
Diffstat (limited to 'components/script/dom/response.rs')
-rw-r--r-- | components/script/dom/response.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/response.rs b/components/script/dom/response.rs index 7dfa24439fc..ec139bf4a9e 100644 --- a/components/script/dom/response.rs +++ b/components/script/dom/response.rs @@ -58,7 +58,7 @@ impl Response { mime_type: DomRefCell::new("".to_string().into_bytes()), body_used: Cell::new(false), status: DomRefCell::new(Some(StatusCode::OK)), - raw_status: DomRefCell::new(Some((200, b"OK".to_vec()))), + raw_status: DomRefCell::new(Some((200, b"".to_vec()))), response_type: DomRefCell::new(DOMResponseType::Default), url: DomRefCell::new(None), url_list: DomRefCell::new(vec![]), @@ -313,7 +313,7 @@ impl ResponseMethods for Response { fn StatusText(&self) -> ByteString { match *self.raw_status.borrow() { Some((_, ref st)) => ByteString::new(st.clone()), - None => ByteString::new(b"OK".to_vec()), + None => ByteString::new(b"".to_vec()), } } |