diff --git a/ngx_http_mogilefs_module.c b/ngx_http_mogilefs_module.c index e229f47..a4d249d 100644 --- a/ngx_http_mogilefs_module.c +++ b/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;