优化代码

This commit is contained in:
GoEdgeLab
2023-07-22 14:51:17 +08:00
parent 550e029c38
commit c2895a296c

View File

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