Code review corrections
This commit is contained in:
parent
aaeb7cdffd
commit
d390f86de2
3 changed files with 28 additions and 16 deletions
|
@ -133,7 +133,7 @@ func (w *WebsocketProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||
connBackend, resp, err := dialer.Dial(backendURL.String(), nil)
|
||||
if err != nil {
|
||||
log.Errorf("Websocketproxy: couldn't dial to remote backend url %s, %s, %+v", backendURL.String(), err, resp)
|
||||
http.NotFound(rw, req)
|
||||
http.Error(rw, "Remote backend unreachable", http.StatusBadGateway)
|
||||
return
|
||||
}
|
||||
defer connBackend.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue