mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fixes #3962
Bad HTTP responses now have a 0 status code instead of 200 OK.
This commit is contained in:
parent
431644bfc8
commit
b664ee88e7
5 changed files with 14 additions and 22 deletions
|
@ -72,7 +72,7 @@ pub struct Metadata {
|
|||
pub headers: Option<ResponseHeaderCollection>,
|
||||
|
||||
/// HTTP Status
|
||||
pub status: Status
|
||||
pub status: Option<Status>
|
||||
}
|
||||
|
||||
impl Metadata {
|
||||
|
@ -83,7 +83,7 @@ impl Metadata {
|
|||
content_type: None,
|
||||
charset: None,
|
||||
headers: None,
|
||||
status: StatusOk // http://fetch.spec.whatwg.org/#concept-response-status-message
|
||||
status: Some(StatusOk) // http://fetch.spec.whatwg.org/#concept-response-status-message
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue