1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:04:56 -07:00

net/http: fix typo in Response.Body field docs

Fixes #31096

Change-Id: I5b36bfc6d18eb8c1bbf15abcd92b0e6559cda3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/169683
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Brad Fitzpatrick 2019-03-28 02:09:32 +00:00
parent 722b1abbcf
commit ea9eddb3e7

View File

@ -12,12 +12,13 @@ import (
"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{
@ -66,7 +67,7 @@ type Response struct {
// 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