Skip to content

Commit 74f3785

Browse files
committed
modsecurity: Process also reqeusts w/ Content-Length: 0
1 parent 5d530c4 commit 74f3785

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
@@ -247,7 +247,7 @@ ngx_int_t
247247
ngx_http_modsecurity_process_empty_req_body(ngx_http_request_t *r,
248248
ngx_http_modsecurity_ctx_t *ctx)
249249
{
250-
if (r->headers_in.content_length_n < 0 && !r->headers_in.chunked) {
250+
if (r->headers_in.content_length_n <= 0 && !r->headers_in.chunked) {
251251
msc_process_request_body(ctx->modsec_transaction);
252252
return ngx_http_modsecurity_process_intervention(r, ctx, 1);
253253
}

0 commit comments

Comments
 (0)