1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

LibWeb: Honor User-Agent spoofing in Fetch headers

This makes spoofing consistent between legacy ResourceLoader loads,
Fetch loads, and the JavaScript `navigator` APIs.
This commit is contained in:
Andreas Kling 2023-12-27 11:43:14 +01:00
parent a30d263522
commit 89da988da1
3 changed files with 4 additions and 4 deletions

View file

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