Closed Bug 1933239 Opened 3 months ago Closed 13 days ago

Set Accept header to `application/json,*/*;q=0.5` when fetching JSON modules

Categories

(Core :: DOM: Networking, enhancement, P3)

enhancement
Points:
2

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: jon4t4n, Assigned: allstars.chh)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [necko-triaged][necko-priority-next], [wptsync upstream])

Attachments

(1 file)

Flags: needinfo?(smayya)
Blocks: fetch
Severity: -- → N/A
Points: --- → 2
Rank: 2
Flags: needinfo?(smayya)
Priority: -- → P3
Whiteboard: [necko-triaged][necko-priority-next]
Assignee: nobody → allstars.chh

According to https://fetch.spec.whatwg.org/#fetching

If the request's destination is "json", the Accept value in HTTP header
should be set to application/json,*/*;q=0.5.

Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/35ef6e6f8c8e Update HTTP Accept header when fetching a JSON module. r=dom-core,necko-reviewers,frontend-codestyle-reviewers,mossop,valentin,sefeng
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/50609 for changes under testing/web-platform/tests
Whiteboard: [necko-triaged][necko-priority-next] → [necko-triaged][necko-priority-next], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Regressions: 1947432
Regressions: 1947455
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: