aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/server.go')
-rw-r--r--src/net/http/server.go1
1 files changed, 0 insertions, 1 deletions
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,