Skip to content

Commit d27d13a

Browse files
Use Accept: application/json,text/json,*/*;q=0.5 for JSON modules
1 parent b94e88c commit d27d13a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103505,6 +103505,17 @@ document.querySelector("button").addEventListener("click", bound);
103505103505
the result of running the <span>fetch destination from module type</span> steps given
103506103506
<var>destination</var> and <var>moduleType</var>.</p></li>
103507103507

103508+
<li>
103509+
<p>If <var>moduleType</var> is "<code data-x="">json</code>", <span
103510+
data-x="concept-header-list-set">set</span> (`<code data-x="http-accept">Accept</code>`, `<code
103511+
data-x="">application/json,text/json,*/*;q=0.5</code>`) in <var>request</var>'s <span
103512+
data-x="concept-request-header-list">header list</span>.</p>
103513+
103514+
<p class="note"><span data-x="concept-fetch">Fetch</span> sets the (`<code
103515+
data-x="http-accept">Accept</code>`, `<code data-x="">text/css,*/*;q=0.1</code>`) header for CSS
103516+
modules.</p>
103517+
</li>
103518+
103508103519
<!--
103509103520
"serviceworker" being included here is not redundant with the Service Worker spec's own
103510103521
same-origin check, because the request's mode also affects the Origin and Sec-Fetch-Mode

0 commit comments

Comments
 (0)