From ba0e60c61db9141fea6a28c64f2aa2a76525c2f7 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 7 May 2026 08:51:00 +0800 Subject: [PATCH] feat(botfilter): add appendReason --- matcher.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matcher.go b/matcher.go index 96a58f90..793147d1 100644 --- a/matcher.go +++ b/matcher.go @@ -133,3 +133,9 @@ func implausibleBrowser(r *http.Request, userAgent string) bool { return false } +func appendReason(current, next string) string { + if current == "" { + return next + } + return current + "; " + next +}