diff --git a/server.go b/server.go index e3437ac..dfd5f20 100644 --- a/server.go +++ b/server.go @@ -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