Skip to content

Commit 82d4407

Browse files
committed
Fixed 'request body is larger ...' error
1 parent 231921c commit 82d4407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx/modsecurity/ngx_http_modsecurity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ modsecurity_read_body_cb(request_rec *r, char *outpos, unsigned int length,
384384

385385
outpos = (char *) ngx_cpymem(outpos, buf->pos, len);
386386
rest -= len;
387-
buf->last += len;
387+
buf->pos += len;
388388
} else if (buf->in_file) {
389389

390390
size = ngx_read_file(buf->file, (u_char*)outpos, len, buf->file_pos);

0 commit comments

Comments
 (0)