Commit ea9eddb3 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

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

Fixes #31096

Change-Id: I5b36bfc6d18eb8c1bbf15abcd92b0e6559cda3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/169683Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
parent 722b1abb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment