Permalink
Browse files

Compatibility with nginx API 0.8.11

  • Loading branch information...
1 parent a56300a commit e8f288711c71d5cf1a3776784b941e6a5278f0de Valery Kholodkov committed Aug 30, 2009
Showing with 5 additions and 0 deletions.
  1. +1 −0 Changelog
  2. +4 −0 ngx_http_upload_module.c
View
@@ -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
View
@@ -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;
}

0 comments on commit e8f2887

Please sign in to comment.