Skip to content

Commit

Permalink
Fixed bug: keepalive connection was hanging after upload has been com…
Browse files Browse the repository at this point in the history
…pleted.
  • Loading branch information
vkholodkov committed Nov 24, 2009
1 parent e975232 commit d8b1a57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

Version 2.0.12
* Fixed bug: keepalive connection was hanging after upload has been completed.

Version 2.0.11
* Fixed bug: rb->buf was uninitiazlied at some execution paths. Found by Andrew Filonov.
* Fixed bug: dummy field would not appear whenever form contains only non-file fields.
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 @@ -719,6 +719,10 @@ static ngx_int_t ngx_http_upload_body_handler(ngx_http_request_t *r) { /* {{{ */
ngx_sprintf(r->headers_in.content_length->value.data, "%O", r->headers_in.content_length_n)
- r->headers_in.content_length->value.data;

#if defined nginx_version && nginx_version >= 8011
r->main->count--;
#endif

if(uri->len != 0 && uri->data[0] == '/') {
rc = ngx_http_internal_redirect(r, uri, &args);
}
Expand Down

0 comments on commit d8b1a57

Please sign in to comment.