优化代码

This commit is contained in:
刘祥超
2023-07-22 14:51:17 +08:00
parent 67a0d06944
commit 556055cfcb

View File

@@ -7,7 +7,7 @@ import (
) )
func (this *HTTPRequest) doCheckUserAgent() (shouldStop bool) { func (this *HTTPRequest) doCheckUserAgent() (shouldStop bool) {
if this.web.UserAgent == nil { if this.web.UserAgent == nil || !this.web.UserAgent.IsOn {
return return
} }