]> Cypherpunks.ru repositories - gostls13.git/commitdiff
net/http: remove outdated comment about a support of CONNECT method
authorKeiichi Hirobe <chalenge.akane@gmail.com>
Sun, 22 Oct 2023 08:30:37 +0000 (17:30 +0900)
committerGopher Robot <gobot@golang.org>
Mon, 23 Oct 2023 20:47:30 +0000 (20:47 +0000)
The net/http.Transport already supports CONNECT after
https://go-review.googlesource.com/c/go/+/123156 was merged, which
deleted comments in transport.go.

Change-Id: I784fdb9b044bc8a4a29bf252328c80a11aaf6901
Reviewed-on: https://go-review.googlesource.com/c/go/+/536057
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/http/request.go

index b66e6853f66f8d4b173fb390e0b8d10bf17ad380..ed2cdac136d03b7461d18193fb9ef529bbf50dcd 100644 (file)
@@ -111,10 +111,6 @@ var reqWriteExcludeHeader = map[string]bool{
 type Request struct {
        // Method specifies the HTTP method (GET, POST, PUT, etc.).
        // For client requests, an empty string means GET.
-       //
-       // Go's HTTP client does not support sending a request with
-       // the CONNECT method. See the documentation on Transport for
-       // details.
        Method string
 
        // URL specifies either the URI being requested (for server