From 82d44071d4f722823c5e6e622fdd528c43d4cf30 Mon Sep 17 00:00:00 2001 From: chaizhenhua Date: Fri, 4 Jan 2013 23:50:27 +0800 Subject: [PATCH] Fixed 'request body is larger ...' error --- nginx/modsecurity/ngx_http_modsecurity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/modsecurity/ngx_http_modsecurity.c b/nginx/modsecurity/ngx_http_modsecurity.c index d04d7e4e..6aab9e32 100644 --- a/nginx/modsecurity/ngx_http_modsecurity.c +++ b/nginx/modsecurity/ngx_http_modsecurity.c @@ -384,7 +384,7 @@ modsecurity_read_body_cb(request_rec *r, char *outpos, unsigned int length, outpos = (char *) ngx_cpymem(outpos, buf->pos, len); rest -= len; - buf->last += len; + buf->pos += len; } else if (buf->in_file) { size = ngx_read_file(buf->file, (u_char*)outpos, len, buf->file_pos);