summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-11-26 09:52:41 +0100
committerGitHub <noreply@github.com>2021-11-26 19:52:41 +1100
commitd763633781be484bb19b458208dd7c11efb83228 (patch)
treea165f0eefad95df88a0fa50e6bc2412044d7a2cc /ext/net/ops.rs
parent6a780543a43d4d370c42b557955200c59bcb21e8 (diff)
feat(etc/fetch): Support `WebAssembly.instantiateStreaming` for file fetches (#12901)
Fetching of local files, added in #12545, returns a response with no headers, including the `Content-Type` header. This currently makes it not work with the WebAssembly streaming APIs, which require the response to have a content type of `application/wasm`. Since the only way to obtain a `Response` object with a non-empty `url` field is via `fetch()`, this change changes the content type requirement to only apply to responses whose url has the `file:` scheme.
Diffstat (limited to 'ext/net/ops.rs')
0 files changed, 0 insertions, 0 deletions