You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -111,8 +112,10 @@ Note: This algorithm accepts a {{Response}} object, or a
111
112
1. Let |returnValue| be [=a new promise=]
112
113
1. [=Upon fulfillment=] of |source| with value |unwrappedSource|:
113
114
1. Let |response| be |unwrappedSource|'s [=Response/response=].
114
-
1. Let |mimeType| be the result of [=extracting a MIME type=] from |response|'s [=response/header list=].
115
-
1. If |mimeType| is not `` `application/wasm` ``, reject |returnValue| with a {{TypeError}} and abort these substeps.
115
+
1. Let |mimeType| be the result of [=header list/getting=] `` `Content-Type` `` from |response|'s [=response/header list=].
116
+
1. If |mimeType| is null, reject |returnValue| with a {{TypeError}} and abort these substeps.
117
+
1. Remove all [=HTTP tab or space byte=] from the start and end of |mimeType|.
118
+
1. If |mimeType| is not a [=byte-case-insensitive=] match for `` `application/wasm` ``, reject |returnValue| with a {{TypeError}} and abort these substeps.
116
119
117
120
Note: extra parameters are not allowed, including the empty `` `application/wasm;` ``.
0 commit comments