mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Skip range requests for media if the server won't accept them
Currently, this just respects the reported value from Accept-Ranges, but we could also just try sending a range request and see if the server rejects it, then fall back to a normal request after. For now, this is fine, and we can make it use a fallback later if needed.
This commit is contained in:
committed by
Gregory Bertilson
parent
e8dcf5fad2
commit
4eb310cd3f
Notes:
github-actions[bot]
2026-02-06 10:55:38 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/4eb310cd3fd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7473
@@ -31,6 +31,7 @@ Optional<Vector<ByteString>> Header::extract_header_values() const
|
||||
|
||||
// For now we only parse some headers that are of the ABNF list form "#something"
|
||||
if (name.is_one_of_ignoring_ascii_case(
|
||||
"Accept-Ranges"sv,
|
||||
"Access-Control-Request-Headers"sv,
|
||||
"Access-Control-Expose-Headers"sv,
|
||||
"Access-Control-Allow-Headers"sv,
|
||||
|
||||
Reference in New Issue
Block a user