From f9c54f9cd441110af2146d9c21eeaee9df178204 Mon Sep 17 00:00:00 2001 From: Keiichi Hirobe Date: Sun, 22 Oct 2023 17:30:37 +0900 Subject: [PATCH] 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 --- src/net/http/request.go | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.50.0