remove pointless indirection
This commit is contained in:
1 parent
f025b6ea36
commit
3f9c7a5c00
2 files changed
+5
-17
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user