diff --git a/Changelog b/Changelog index 86be1e3..dc673a6 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ Version 2.0.10 + * Change: compatibility with nginx API 0.8.11 * Fixed bug: Prevent module from registering store path if no upload location was configured * Fixed bug: upload corrupted in case of short body + keepalive. Thanks to Dmitry diff --git a/ngx_http_upload_module.c b/ngx_http_upload_module.c index 37288b9..0577d7e 100644 --- a/ngx_http_upload_module.c +++ b/ngx_http_upload_module.c @@ -1710,6 +1710,10 @@ ngx_http_read_upload_client_request_body(ngx_http_request_t *r) { ngx_http_core_loc_conf_t *clcf; ngx_http_upload_ctx_t *u = ngx_http_get_module_ctx(r, ngx_http_upload_module); +#if defined nginx_version && nginx_version >= 8011 + r->main->count++; +#endif + if (r->request_body || r->discard_body) { return NGX_OK; }