Skip to content

Commit 4f153f4

Browse files
committed
Temporary inspect all kind of requests
1 parent 2de9b2a commit 4f153f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ngx_http_modsecurity_pre_access.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ ngx_http_modsecurity_pre_access_handler(ngx_http_request_t *r)
5454
dd("ModSecurity not enabled... returning");
5555
return NGX_DECLINED;
5656
}
57+
/*
58+
* FIXME:
59+
* In order to perform some tests, let's accept everything.
60+
*
5761
if (r->method != NGX_HTTP_GET &&
5862
r->method != NGX_HTTP_POST && r->method != NGX_HTTP_HEAD) {
5963
dd("ModSecurity is not ready to deal with anything different from " \
6064
"POST, GET or HEAD");
6165
return NGX_DECLINED;
6266
}
67+
*/
6368

6469
ctx = ngx_http_get_module_ctx(r, ngx_http_modsecurity_module);
6570

0 commit comments

Comments
 (0)