mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/Fetch: Use "json" destination
See: -da8d0d8
-49bff76
-37659e9
This commit is contained in:
parent
e2f242a552
commit
987198782c
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/jamierocks
Commit: 987198782c
Pull-request: https://github.com/SerenityOS/serenity/pull/24193
5 changed files with 18 additions and 8 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue