feat(botfilter): add inspectRequest

This commit is contained in:
hoelee committed 2026-04-14 10:05:00 +08:00
1 parent 0c4342e10b
commit 1dedeab625
1 file changed
+4
+4
View File
@@ -11,3 +11,7 @@ type matchResult struct {
reason string
}
func inspectRequest(r *http.Request, cfg *compiledConfig) matchResult {
paths := requestPaths(r)
userAgent := strings.TrimSpace(r.UserAgent())