mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
Merge pull request #638 from kelseyhightower/fix_multiple_response_write_headers
integration: Fix multiple response.WriteHeader calls
This commit is contained in:
commit
8a5cc87df8
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue