Merge pull request #69013 from ibrasho-forks/switch-to-http.Error

Update usages of http.ResponseWriter.WriteHeader to use http.Error
This commit is contained in:
k8s-ci-robot
2018-10-23 15:31:55 -07:00
committed by GitHub
12 changed files with 29 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ func TestHTTPProbeChecker(t *testing.T) {
if r.URL.Path == "/" {
http.Redirect(w, r, "/new", s)
} else if bad && r.URL.Path == "/new" {
w.WriteHeader(http.StatusInternalServerError)
http.Error(w, "", http.StatusInternalServerError)
}
}
}