ladybird/Libraries/LibHTTP
Praise-Garfield b270b2cacb LibHTTP: Fix inverted Content-Range complete-length parsing
parse_single_byte_content_range_as_values() has the condition on
consume_specific('*') inverted. When the complete-length is a
numeric value like "1000", the negated check causes the wildcard
branch to run, discarding the length. When it is "*" (unknown),
the else branch tries to parse digits after consuming the "*",
which fails entirely.

Removing the "!" fixes both cases so that "*" correctly produces
an empty complete_length, and numeric values are parsed normally.

Also adds an EOF check after parsing to reject trailing garbage,
matching the pattern used by parse_single_range_header_value().
2026-02-13 09:39:49 +01:00
..
Cache LibHTTP+RequestServer: Send revalidation attributes without parsing 2026-02-10 09:09:53 -05:00
Cookie LibHTTP+LibWeb: Move the IncludeCredentials enum to LibHTTP 2026-02-10 12:21:20 +01:00
CMakeLists.txt LibHTTP+Everywhere: Move the cookie implementation to LibHTTP 2026-02-10 12:21:20 +01:00
Forward.h LibHTTP+LibWeb: Move the IncludeCredentials enum to LibHTTP 2026-02-10 12:21:20 +01:00
Header.cpp LibWeb: Skip range requests for media if the server won't accept them 2026-01-29 05:22:27 -06:00
Header.h LibHTTP+LibWeb+RequestServer: Move Fetch's HTTP header infra to LibHTTP 2025-11-27 14:57:29 +01:00
HeaderList.cpp LibHTTP: Fix inverted Content-Range complete-length parsing 2026-02-13 09:39:49 +01:00
HeaderList.h LibHTTP: Implement extraction of the Content-Range values in HeaderList 2026-01-29 05:22:27 -06:00
HTTP.cpp LibHTTP+LibWeb+RequestServer: Move Fetch's HTTP header infra to LibHTTP 2025-11-27 14:57:29 +01:00
HTTP.h LibHTTP+LibWeb+RequestServer: Move Fetch's HTTP header infra to LibHTTP 2025-11-27 14:57:29 +01:00
HttpRequest.cpp LibHTTP: Remove unused HttpRequest functions re: basic auth 2025-11-28 08:48:33 -05:00
HttpRequest.h LibHTTP: Remove unused HttpRequest functions re: basic auth 2025-11-28 08:48:33 -05:00
Method.cpp LibHTTP+LibWeb+RequestServer: Move Fetch's HTTP header infra to LibHTTP 2025-11-27 14:57:29 +01:00
Method.h LibHTTP+LibWeb+RequestServer: Move Fetch's HTTP header infra to LibHTTP 2025-11-27 14:57:29 +01:00
Status.h LibHTTP+LibWeb: Remove unused HTTP::HTTPResponse 2025-11-27 14:57:29 +01:00