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 +} +