fix typo
This commit is contained in:
parent
d6dafa5ab6
commit
7c164ef58f
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ func (rs *Response) Redirect(url string, use303 ...bool) *Response {
|
|||
})
|
||||
|
||||
if len(use303) > 0 && use303[0] {
|
||||
rs= http.StatusSeeOther // 303
|
||||
rs.redirectStatusCode = http.StatusSeeOther // 303
|
||||
} else {
|
||||
rs.redirectStatusCode = http.StatusTemporaryRedirect // 307 (default)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue