mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-19 16:47:16 +03:00
@@ -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