feat(botfilter): add appendReason
This commit is contained in:
1 parent
6d94ec9b77
commit
ba0e60c61d
1 file changed
+6
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user