mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-15 16:07:51 +03:00
Redirect 307 instead of 302
This commit is contained in:
@@ -650,7 +650,8 @@ func (ctx *RequestCtx) redirect(uri []byte, statusCode int) {
|
||||
}
|
||||
|
||||
func getRedirectStatusCode(statusCode int) int {
|
||||
if statusCode == StatusMovedPermanently || statusCode == StatusFound || statusCode == StatusSeeOther {
|
||||
if statusCode == StatusMovedPermanently || statusCode == StatusFound ||
|
||||
statusCode == StatusSeeOther || statusCode == StatusTemporaryRedirect {
|
||||
return statusCode
|
||||
}
|
||||
return StatusFound
|
||||
|
||||
Reference in New Issue
Block a user