diff --git a/botfilter.go b/botfilter.go index e30efc67..159a2da0 100644 --- a/botfilter.go +++ b/botfilter.go @@ -120,3 +120,10 @@ func (r *statusRecorder) Write(data []byte) (int, error) { return r.ResponseWriter.Write(data) } +func (r *statusRecorder) statusCode() int { + if r.status == 0 { + return http.StatusOK + } + return r.status +} +