Fixed 'request body is larger ...' error

This commit is contained in:
chaizhenhua 2013-01-04 23:50:27 +08:00
parent 231921ce25
commit 82d44071d4

View File

@ -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);