mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Trim leading and trailing HTTP whitespace bytes
The XMLHttpRequest specification specifices that header values should be normalized by trimming leading and trailing HTTP whitespace bytes.
This commit is contained in:
parent
fccea8888e
commit
1ca1a73d67
Notes:
sideshowbarker
2024-07-17 11:35:20 +09:00
Author: https://github.com/kennethmyhra
Commit: 1ca1a73d67
Pull-request: https://github.com/SerenityOS/serenity/pull/13520
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
namespace Web::XHR {
|
||||
|
||||
static constexpr Array<u8, 4> http_whitespace_bytes = { '\t', '\n', '\r', ' ' };
|
||||
|
||||
class XMLHttpRequest final
|
||||
: public RefCounted<XMLHttpRequest>
|
||||
, public Weakable<XMLHttpRequest>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue