mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Correctly categorize Fetch responses as network errors
The condition here is flipped. From the spec: A network error is a response whose ... body is null ...
This commit is contained in:
parent
b317620486
commit
2b22402c6a
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/trflynn89
Commit: 2b22402c6a
Pull-request: https://github.com/SerenityOS/serenity/pull/22854
Issue: https://github.com/SerenityOS/serenity/issues/22851
3 changed files with 39 additions and 1 deletions
|
@ -96,7 +96,7 @@ bool Response::is_network_error() const
|
|||
return false;
|
||||
if (!header_list()->is_empty())
|
||||
return false;
|
||||
if (!body())
|
||||
if (body())
|
||||
return false;
|
||||
if (body_info() != BodyInfo {})
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue