]> Cypherpunks repositories - gostls13.git/commit
net/http: use fake Transport network when running in Node
authorJohan Brandhorst <johan.brandhorst@gmail.com>
Thu, 31 May 2018 10:12:32 +0000 (10:12 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 31 May 2018 15:13:02 +0000 (15:13 +0000)
commit08e2e880e72a173e6c1d3ff708fac2d3661ced89
treed469824fb1c9f652f9828efb73c07e092d0a2217
parent33cd4fba38b82693d7ffc62f50ea763694d4c8c3
net/http: use fake Transport network when running in Node

Replaces the existing local loopback check with a check to see
whether the program is being interpreted by Node. This means
tests that are run with Node will use the fake network while still
allowing users who are using js/wasm to talk to local networks.

Updates #25506

Change-Id: I8bc3c6808fa29293b7ac5f77b186140c4ed90b51
GitHub-Last-Rev: 43d26af7bc716b7a01dd8f47d7a2c2a2df549489
GitHub-Pull-Request: golang/go#25663
Reviewed-on: https://go-review.googlesource.com/115495
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/roundtrip_js.go