]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: enable WASM fetch where supported
authorJohan Brandhorst <johan.brandhorst@gmail.com>
Tue, 28 May 2019 20:51:54 +0000 (21:51 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 30 May 2019 17:59:57 +0000 (17:59 +0000)
commit220552f6624f530079b81ba866cd1ffb2f240370
treefae83bb72a6c85d5ded8e2468d3c3540245bf69e
parent16796afc35de049a89da42efaad1593c26a96392
net/http: enable WASM fetch where supported

The existing check was introduced to allow tests to pass
on WASM without an environment where the fetch RoundTripper
could run. However, the check now prohibits the use of the
Fetch RoundTripper in all WASM tests, even where the
RoundTripper could run. The new change should only disable
the RoundTripper when used in an environment without fetch.

Fixes #32289

Change-Id: I30d2e0dbcb0e64d4b1a46b583f7e984c2a57d5e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/179118
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/roundtrip_js.go