From 94ceb04796fbc8806e977c9e5c2988202b30fa66 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 14 May 2026 10:05:00 +0800 Subject: [PATCH] feat(botfilter): add statusRecorder --- botfilter.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/botfilter.go b/botfilter.go index 655d7a3e..853d9d1e 100644 --- a/botfilter.go +++ b/botfilter.go @@ -98,3 +98,10 @@ func addressString(addr netip.Addr) string { return addr.String() } +// statusRecorder keeps downstream response capabilities available while +// recording the final status used for 404 scoring. +type statusRecorder struct { + http.ResponseWriter + status int +} +