aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2016-04-01 15:56:03 +0300
committerValentin Bartenev <vbart@nginx.com>2016-04-01 15:56:03 +0300
commit948eeca222c67dc6954ec0e68bf5c18e97e1a784 (patch)
treeb9442b62cff536807a10b6b9adce34c261b229dc /src/http/ngx_http_request.h
parentcedba685a1eb18ca960b2eab3fafdc2afdbd624a (diff)
downloadnginx-948eeca222c67dc6954ec0e68bf5c18e97e1a784.tar.gz
nginx-948eeca222c67dc6954ec0e68bf5c18e97e1a784.zip
HTTP/2: rewritten handling of request body.
There are two improvements: 1. Support for request body filters; 2. Receiving of request body is started only after the ngx_http_read_client_request_body() call. The last one fixes the problem when the client_max_body_size value might not be respected from the right location if the location was changed either during the process of receiving body or after the whole body had been received.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 8b881392d..cfde7dc7e 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -284,6 +284,9 @@ typedef struct {
ngx_chain_t *bufs;
ngx_buf_t *buf;
off_t rest;
+#if (NGX_HTTP_V2)
+ off_t received;
+#endif
ngx_chain_t *free;
ngx_chain_t *busy;
ngx_http_chunked_t *chunked;