LibWeb/Fetch: Bring parse_single_range_header_value() up to spec

The previous implementation wasn't using the latest specification steps.
This commit is contained in:
rmg-x 2024-11-18 17:18:26 -06:00 committed by Tim Ledbetter
commit bf5cf720b5
Notes: github-actions[bot] 2024-11-21 00:59:20 +00:00
3 changed files with 45 additions and 20 deletions

View file

@ -93,7 +93,7 @@ struct ExtractHeaderParseFailure {
[[nodiscard]] bool is_request_body_header_name(ReadonlyBytes);
[[nodiscard]] Optional<Vector<ByteBuffer>> extract_header_values(Header const&);
[[nodiscard]] Variant<Vector<ByteBuffer>, ExtractHeaderParseFailure, Empty> extract_header_list_values(ReadonlyBytes, HeaderList const&);
[[nodiscard]] Optional<RangeHeaderValue> parse_single_range_header_value(ReadonlyBytes);
[[nodiscard]] Optional<RangeHeaderValue> parse_single_range_header_value(ReadonlyBytes, bool);
[[nodiscard]] ByteBuffer default_user_agent_value();
}