Skip to content

Commit 7a62e4e

Browse files
committed
modsecurity: Process also reqeusts w/ Content-Length: 0
1 parent c931124 commit 7a62e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_modsecurity_rewrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ ngx_int_t
231231
ngx_http_modsecurity_process_empty_req_body(ngx_http_request_t *r,
232232
ngx_http_modsecurity_ctx_t *ctx)
233233
{
234-
if (r->headers_in.content_length_n < 0 && !r->headers_in.chunked) {
234+
if (r->headers_in.content_length_n <= 0 && !r->headers_in.chunked) {
235235
msc_process_request_body(ctx->modsec_transaction);
236236
return ngx_http_modsecurity_process_intervention(r, ctx);
237237
}

0 commit comments

Comments
 (0)