Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 8a5cc87

Browse files
committed
Merge pull request kubernetes#638 from kelseyhightower/fix_multiple_response_write_headers
integration: Fix multiple response.WriteHeader calls
2 parents d102b9c + 7a7dfeb commit 8a5cc87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/integration/integration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type delegateHandler struct {
7474
func (h *delegateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
7575
if h.delegate != nil {
7676
h.delegate.ServeHTTP(w, req)
77+
return
7778
}
7879
w.WriteHeader(http.StatusNotFound)
7980
}

0 commit comments

Comments
 (0)