增加是否记录499选项

This commit is contained in:
GoEdgeLab
2021-12-01 21:13:10 +08:00
parent 0d68a4c068
commit 5a3869c18e

View File

@@ -32,6 +32,11 @@ func (this *HTTPRequest) log() {
return
}
// 是否记录499
if !ref.EnableClientClosed && this.writer.StatusCode() == 499 {
return
}
addr := this.RawReq.RemoteAddr
index := strings.LastIndex(addr, ":")
if index > 0 {