feat(botfilter): add statusRecorder
This commit is contained in:
1 parent
04fb522ce7
commit
94ceb04796
1 file changed
+7
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user