LibWeb/Fetch: Use "json" destination

See:
- da8d0d8
- 49bff76
- 37659e9
This commit is contained in:
Jamie Mansfield 2024-05-03 20:44:06 +01:00 committed by Andrew Kaster
commit 987198782c
Notes: sideshowbarker 2024-07-17 16:23:06 +09:00
5 changed files with 18 additions and 8 deletions

View file

@ -165,6 +165,11 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Infrastructure::FetchController>> fetch(JS:
// `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
value = "image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"sv;
break;
// -> "json"
case Infrastructure::Request::Destination::JSON:
// `application/json,*/*;q=0.5`
value = "application/json,*/*;q=0.5"sv;
break;
// -> "style"
case Infrastructure::Request::Destination::Style:
// `text/css,*/*;q=0.1`