Explorar el Código

proxy/httpproxy: fix httputil.RequestCanceler

Gyu-Ho Lee hace 10 años
padre
commit
f14fd43548
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      proxy/httpproxy/reverse.go

+ 1 - 1
proxy/httpproxy/reverse.go

@@ -110,7 +110,7 @@ func (p *reverseProxy) ServeHTTP(rw http.ResponseWriter, clientreq *http.Request
 	var requestClosed int32
 	completeCh := make(chan bool, 1)
 	closeNotifier, ok := rw.(http.CloseNotifier)
-	cancel := httputil.RequestCanceler(p.transport, proxyreq)
+	cancel := httputil.RequestCanceler(proxyreq)
 	if ok {
 		closeCh := closeNotifier.CloseNotify()
 		go func() {