diff options
Diffstat (limited to 'src/net/http')
| -rw-r--r-- | src/net/http/httputil/dump_test.go | 1 | ||||
| -rw-r--r-- | src/net/http/httputil/persist.go | 1 | ||||
| -rw-r--r-- | src/net/http/internal/chunked.go | 1 | ||||
| -rw-r--r-- | src/net/http/requestwrite_test.go | 1 | ||||
| -rw-r--r-- | src/net/http/server.go | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/src/net/http/httputil/dump_test.go b/src/net/http/httputil/dump_test.go index f881020fef..a403c88eaa 100644 --- a/src/net/http/httputil/dump_test.go +++ b/src/net/http/httputil/dump_test.go @@ -27,7 +27,6 @@ type dumpTest struct { } var dumpTests = []dumpTest{ - // HTTP/1.1 => chunked coding; body; empty trailer { Req: http.Request{ diff --git a/src/net/http/httputil/persist.go b/src/net/http/httputil/persist.go index cbedf25ad1..24c9c73474 100644 --- a/src/net/http/httputil/persist.go +++ b/src/net/http/httputil/persist.go @@ -173,7 +173,6 @@ func (sc *ServerConn) Pending() int { // Response.Close field to true. Write should be considered operational until // it returns an error, regardless of any errors returned on the Read side. func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error { - // Retrieve the pipeline ID of this request/response pair sc.mu.Lock() id, ok := sc.pipereq[req] diff --git a/src/net/http/internal/chunked.go b/src/net/http/internal/chunked.go index 63f321d03b..7f83a56f1c 100644 --- a/src/net/http/internal/chunked.go +++ b/src/net/http/internal/chunked.go @@ -192,7 +192,6 @@ type chunkedWriter struct { // NOTE: Note that the corresponding chunk-writing procedure in Conn.Write has // a bug since it does not check for success of io.WriteString func (cw *chunkedWriter) Write(data []byte) (n int, err error) { - // Don't send 0-length data. It looks like EOF for chunked encoding. if len(data) == 0 { return 0, nil diff --git a/src/net/http/requestwrite_test.go b/src/net/http/requestwrite_test.go index eb65b9f736..74b01db6da 100644 --- a/src/net/http/requestwrite_test.go +++ b/src/net/http/requestwrite_test.go @@ -813,7 +813,6 @@ func TestRequestWriteError(t *testing.T) { // try to restore it. It always dumps the whole body. // And it doesn't support https. func dumpRequestOut(req *Request, onReadHeaders func()) ([]byte, error) { - // Use the actual Transport code to record what we would send // on the wire, but not using TCP. Use a Transport with a // custom dialer that returns a fake net.Conn that waits diff --git a/src/net/http/server.go b/src/net/http/server.go index 91f481ed50..4329e61e60 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2231,7 +2231,6 @@ func (mux *ServeMux) shouldRedirect(path string) bool { // If there is no registered handler that applies to the request, // Handler returns a ``page not found'' handler and an empty pattern. func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) { - // CONNECT requests are not canonicalized. if r.Method == "CONNECT" { // If r.URL.Path is /tree and its handler is not registered, |
