feat(botfilter): add statusRecorder.WriteHeader
This commit is contained in:
1 parent
94ceb04796
commit
53c288d46e
1 file changed
+8
@@ -105,3 +105,11 @@ type statusRecorder struct {
|
||||
status int
|
||||
}
|
||||
|
||||
func (r *statusRecorder) WriteHeader(status int) {
|
||||
if r.status != 0 {
|
||||
return
|
||||
}
|
||||
r.status = status
|
||||
r.ResponseWriter.WriteHeader(status)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user