mirror of
https://github.com/gin-gonic/gin.git
synced 2025-05-22 01:48:29 +08:00
chore: use http.Status* instead of hard code (#1482)
This commit is contained in:
@ -286,7 +286,7 @@ func TestRenderRedirect(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
data1 := Redirect{
|
||||
Code: 301,
|
||||
Code: http.StatusMovedPermanently,
|
||||
Request: req,
|
||||
Location: "/new/location",
|
||||
}
|
||||
@ -296,7 +296,7 @@ func TestRenderRedirect(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
data2 := Redirect{
|
||||
Code: 200,
|
||||
Code: http.StatusOK,
|
||||
Request: req,
|
||||
Location: "/new/location",
|
||||
}
|
||||
|
Reference in New Issue
Block a user