mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00: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
@ -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 New Issue
Block a user