Merge pull request #638 from kelseyhightower/fix_multiple_response_write_headers

integration: Fix multiple response.WriteHeader calls
This commit is contained in:
Daniel Smith 2014-07-26 16:50:47 -07:00
commit 8a5cc87df8

View File

@ -74,6 +74,7 @@ type delegateHandler struct {
func (h *delegateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
if h.delegate != nil {
h.delegate.ServeHTTP(w, req)
return
}
w.WriteHeader(http.StatusNotFound)
}