1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibWeb/Fetch: Share validation logic in the Headers class

This is an editorial change in the Fetch spec.

See: f435978
This commit is contained in:
Linus Groh 2022-12-07 19:14:45 +00:00
parent 3414a6ba20
commit a06b97dae0
2 changed files with 47 additions and 57 deletions

View file

@ -62,6 +62,7 @@ private:
virtual void visit_edges(JS::Cell::Visitor&) override;
WebIDL::ExceptionOr<bool> validate(Infrastructure::Header const&) const;
void remove_privileged_no_cors_request_headers();
// https://fetch.spec.whatwg.org/#concept-headers-header-list