mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Add & use 'HTTP whitespace' from '2.2. HTTP' in the Fetch spec
We had two independent definitions of this already, both referring to the Fetch spec.
This commit is contained in:
parent
df3e25f1bb
commit
e3798886ed
4 changed files with 10 additions and 12 deletions
|
@ -413,7 +413,7 @@ static String normalize_method(String const& method)
|
|||
// https://fetch.spec.whatwg.org/#concept-header-value-normalize
|
||||
static String normalize_header_value(String const& header_value)
|
||||
{
|
||||
return header_value.trim(StringView { http_whitespace_bytes });
|
||||
return header_value.trim(Fetch::HTTP_WHITESPACE);
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#header-value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue