mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Change Response's statusText default value from 'Ok' to an empty string
This commit is contained in:
parent
524bd722ef
commit
73f11d69ea
6 changed files with 11 additions and 12 deletions
|
@ -534,7 +534,7 @@ impl Metadata {
|
|||
charset: None,
|
||||
headers: None,
|
||||
// https://fetch.spec.whatwg.org/#concept-response-status-message
|
||||
status: Some((200, b"OK".to_vec())),
|
||||
status: Some((200, b"".to_vec())),
|
||||
https_state: HttpsState::None,
|
||||
referrer: None,
|
||||
referrer_policy: None,
|
||||
|
|
|
@ -131,8 +131,8 @@ impl Response {
|
|||
termination_reason: None,
|
||||
url: Some(url),
|
||||
url_list: vec![],
|
||||
status: Some((StatusCode::OK, "OK".to_string())),
|
||||
raw_status: Some((200, b"OK".to_vec())),
|
||||
status: Some((StatusCode::OK, "".to_string())),
|
||||
raw_status: Some((200, b"".to_vec())),
|
||||
headers: HeaderMap::new(),
|
||||
body: Arc::new(Mutex::new(ResponseBody::Empty)),
|
||||
cache_state: CacheState::None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue