LibWeb/Fetch: Use correct header for prefetch requests

See:
 - a5560d2
This commit is contained in:
Jamie Mansfield 2024-07-12 20:01:10 +01:00 committed by Andreas Kling
commit 9ce727d315
Notes: sideshowbarker 2024-07-16 20:12:13 +09:00
2 changed files with 14 additions and 6 deletions

View file

@ -14,6 +14,10 @@
namespace Web::Fetch::Fetching {
// https://fetch.spec.whatwg.org/#document-accept-header-value
// The document `Accept` header value is `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`.
constexpr auto document_accept_header_value = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"sv;
#define ENUMERATE_BOOL_PARAMS \
__ENUMERATE_BOOL_PARAM(IncludeCredentials) \
__ENUMERATE_BOOL_PARAM(IsAuthenticationFetch) \