Permalink
Browse files

Fix the reference counter on some version of nginx

  • Loading branch information...
1 parent 9f9992b commit 893b77b41a9574e3e5ecfc96ee3ecd3542d3b72b Valery Kholodkov committed Nov 25, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 ngx_http_mogilefs_module.c
@@ -483,6 +483,9 @@ ngx_http_mogilefs_put_handler(ngx_http_request_t *r)
case FETCH:
spare_location = mgcf->create_close_spare_location;
ctx->state = CREATE_CLOSE;
+#if defined nginx_version && nginx_version >= 8011
+ r->main->count++;
+#endif
break;
case CREATE_CLOSE:
r->headers_out.content_length_n = 0;

0 comments on commit 893b77b

Please sign in to comment.