chore(lint): use Go stdlib variables for HTTP methods and status codes (#17968)

This commit is contained in:
Ville Vesilehto
2023-07-26 17:28:09 +03:00
committed by GitHub
parent 5c9cd35055
commit 2c463bb038
48 changed files with 388 additions and 387 deletions

View File

@@ -833,7 +833,7 @@ func TestDebug_RedirectError(t *testing.T) {
}
w.Header().Set("Location", "/ui/")
w.WriteHeader(307)
w.WriteHeader(http.StatusTemporaryRedirect)
fmt.Fprintln(w, `<a href="/ui/">Temporary Redirect</a>.`)
}))
defer ts.Close()