feat(botfilter): add statusRecorder.statusCode

This commit is contained in:
hoelee committed 2026-06-09 10:22:00 +08:00
1 parent eb4d3ec627
commit 428591a08b
1 file changed
+7
+7
View File
@@ -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
}