From fbe47765b2c8eae7a87e1af63434e517e7d2926c Mon Sep 17 00:00:00 2001 From: hoelee Date: Tue, 12 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 +}