Skip to content

Commit

Permalink
Fix error when invalid cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens committed Nov 9, 2017
1 parent 912d728 commit f401a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roundrobin/rr.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func (r *RoundRobin) ServeHTTP(w http.ResponseWriter, req *http.Request) {
cookie_url, present, err := r.ss.GetBackend(&newReq, r.Servers())

if err != nil {
r.errHandler.ServeHTTP(w, req, err)
return
log.Infof("vulcand/oxy/roundrobin/rr: error using server from cookie: %v", err)
}

if present {
newReq.URL = cookie_url
stuck = true
Expand Down

0 comments on commit f401a74

Please sign in to comment.