Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 50cf740

Browse files
committed
[waf]将被阻止的请求响应从405改成403
1 parent ce3b148 commit 50cf740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teawaf/actions/action_block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type BlockAction struct {
77

88
func (this *BlockAction) Perform(writer http.ResponseWriter) (allow bool) {
99
if writer != nil {
10-
writer.WriteHeader(http.StatusMethodNotAllowed)
10+
writer.WriteHeader(http.StatusForbidden)
1111
writer.Write([]byte("The request is blocked by TeaWAF"))
1212
}
1313
return false

0 commit comments

Comments
 (0)