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