remove pointless indirection

This commit is contained in:
Matthias Radestock committed 2015-06-09 14:45:50 +01:00
1 parent f025b6ea36
commit 3f9c7a5c00
2 files changed
+5 -17

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
default:
i = &nullInterceptor{}
}
newClient(proxy.dial, i).ServeHTTP(w, r)
proxy.Intercept(i, w, r)
}
func (proxy *Proxy) ListenAndServe() error {