mirror of
https://github.com/openziti/zrok.git
synced 2025-01-08 23:20:04 +01:00
return 502 on proxy error (#703)
This commit is contained in:
parent
ab4132cbe8
commit
d9d1bde9f6
@ -95,6 +95,7 @@ func newReverseProxy(cfg *BackendConfig) (*httputil.ReverseProxy, error) {
|
||||
}
|
||||
proxy.ErrorHandler = func(w http.ResponseWriter, r *http.Request, err error) {
|
||||
logrus.Errorf("error proxying: %v", err)
|
||||
w.WriteHeader(http.StatusBadGateway)
|
||||
}
|
||||
|
||||
return proxy, nil
|
||||
|
Loading…
Reference in New Issue
Block a user