From: Keiichi Hirobe Date: Sun, 22 Oct 2023 08:30:37 +0000 (+0900) Subject: net/http: remove outdated comment about a support of CONNECT method X-Git-Tag: go1.22rc1~529 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f9c54f9cd441110af2146d9c21eeaee9df178204;p=gostls13.git net/http: remove outdated comment about a support of CONNECT method 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Reviewed-by: Brad Fitzpatrick Reviewed-by: Damien Neil --- diff --git a/src/net/http/request.go b/src/net/http/request.go index b66e6853f6..ed2cdac136 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -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