Skip to content

Commit

Permalink
Compatibility with nginx API 0.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Kholodkov committed Aug 30, 2009
1 parent a56300a commit e8f2887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions ngx_http_upload_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e8f2887

Please sign in to comment.