mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
chore(lint): use Go stdlib variables for HTTP methods and status codes (#17968)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user