mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Avoid re-encoding response headers
isomorphic encoding a value that has already been encoded will result in garbage data. `response_headers` is already encoded in ISO-8859-1/latin1, we cannot use `from_string_pair`, as it triggers ISO-8859-1/latin1 encoding. Follow-up of https://github.com/LadybirdBrowser/ladybird/pull/1893
This commit is contained in:
parent
3063be11a9
commit
e0c0668f3d
Notes:
github-actions[bot]
2024-12-17 12:45:04 +00:00
Author: https://github.com/F3n67u
Commit: e0c0668f3d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2890
6 changed files with 22 additions and 7 deletions
|
@ -29,6 +29,7 @@ struct Header {
|
|||
|
||||
[[nodiscard]] static Header copy(Header const&);
|
||||
[[nodiscard]] static Header from_string_pair(StringView, StringView);
|
||||
[[nodiscard]] static Header from_latin1_pair(StringView, StringView);
|
||||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-header-list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue