Bad HTTP responses now have a 0 status code instead of 200 OK.
This commit is contained in:
Jesse Tuchsen 2014-11-27 10:01:38 -08:00
parent 431644bfc8
commit b664ee88e7
5 changed files with 14 additions and 22 deletions

View file

@ -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
}
}