Skip to content

Commit af6926e

Browse files
committed
http2: remove references to defunct http2.golang.org test server
The http2 demo server previously served at http2.golang.org has been stopped (see golang/go#49301). This change removes a link to it from the top-level package docs (which now just redirects to go.dev), and switches the default hostname for the TransportExternal test to go.dev. It also delete an unused transport_test flag. Updates golang/go#49301 Fixes golang/go#51540 Change-Id: I375250a8fec087124d42ed5f1086986e73e7bdfc Reviewed-on: https://go-review.googlesource.com/c/net/+/693895 Reviewed-by: Mark Freeman <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 76358aa commit af6926e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

http2/http2.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// requires Go 1.6 or later)
1212
//
1313
// See https://http2.github.io/ for more information on HTTP/2.
14-
//
15-
// See https://http2.golang.org/ for a test server running this code.
1614
package http2 // import "golang.org/x/net/http2"
1715

1816
import (

http2/transport_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ import (
4040

4141
var (
4242
extNet = flag.Bool("extnet", false, "do external network tests")
43-
transportHost = flag.String("transporthost", "http2.golang.org", "hostname to use for TestTransport")
44-
insecure = flag.Bool("insecure", false, "insecure TLS dials") // TODO: dead code. remove?
43+
transportHost = flag.String("transporthost", "go.dev", "hostname to use for TestTransport")
4544
)
4645

4746
var tlsConfigInsecure = &tls.Config{InsecureSkipVerify: true}

0 commit comments

Comments
 (0)