feat(botfilter): add statusRecorder.statusCode
This commit is contained in:
1 parent
eb4d3ec627
commit
428591a08b
1 file changed
+7
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user