Skip to content

Commit

Permalink
http: fix multiple WriteHeader calls
Browse files Browse the repository at this point in the history
  • Loading branch information
etix committed Jan 19, 2017
1 parent 2bedc5f commit b4cc71f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/http.go
Expand Up @@ -255,6 +255,7 @@ func (h *HTTP) mirrorHandler(w http.ResponseWriter, r *http.Request, ctx *Contex
} else {
// No fallback in stock, there's nothing else we can do
http.Error(w, http.StatusText(http.StatusServiceUnavailable), http.StatusServiceUnavailable)
return
}
} else if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
Expand Down

0 comments on commit b4cc71f

Please sign in to comment.