增加是否记录499选项

This commit is contained in:
刘祥超
2021-12-01 21:13:10 +08:00
parent ea84c41be3
commit a35aa2f520

View File

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