Fixes #31096
Change-Id: I5b36bfc6d18eb8c1bbf15abcd92b0e6559cda3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/169683
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
"crypto/tls"
"errors"
"fmt"
- "golang.org/x/net/http/httpguts"
"io"
"net/textproto"
"net/url"
"strconv"
"strings"
+
+ "golang.org/x/net/http/httpguts"
)
var respExcludeHeader = map[string]bool{
// with a "chunked" Transfer-Encoding.
//
// As of Go 1.12, the Body will be also implement io.Writer
- // on a successful "101 Switching Protocols" responses,
+ // on a successful "101 Switching Protocols" response,
// as used by WebSockets and HTTP/2's "h2c" mode.
Body io.ReadCloser