proxy/httpproxy: fix httputil.RequestCanceler

This commit is contained in:
Gyu-Ho Lee 2016-08-14 14:37:08 -07:00
parent 0503676bde
commit f14fd43548

View File

@ -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() {