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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user