mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Create HttpStatus to safely deal with HTTP responses status. (#33581)
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
013473f1d5
commit
58f34ad7a3
30 changed files with 344 additions and 403 deletions
|
@ -201,7 +201,7 @@ impl FetchResponseListener for StylesheetContext {
|
|||
|
||||
// FIXME: Revisit once consensus is reached at:
|
||||
// https://github.com/whatwg/html/issues/1142
|
||||
successful = metadata.status.is_some_and(|(code, _)| code == 200);
|
||||
successful = metadata.status == http::StatusCode::OK;
|
||||
}
|
||||
|
||||
let owner = elem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue