修复访问日志无法记录自定义跳转状态码的问题

This commit is contained in:
刘祥超
2023-08-20 10:10:23 +08:00
parent eabaa84252
commit 5995be8489
4 changed files with 9 additions and 9 deletions

View File

@@ -908,7 +908,7 @@ func (this *HTTPWriter) SendResp(resp *http.Response) (int64, error) {
// Redirect 跳转
func (this *HTTPWriter) Redirect(status int, url string) {
http.Redirect(this.rawWriter, this.req.RawReq, url, status)
httpRedirect(this, this.req.RawReq, url, status)
this.isFinished = true
}