Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Compatibility with nginx API 0.8.11

  • Loading branch information...
commit 65cc81f92b6145a9c6978d98ed737869b8b70d08 1 parent e296d16
authored September 17, 2009

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  ngx_http_mogilefs_module.c
5  ngx_http_mogilefs_module.c
@@ -7,6 +7,7 @@
7 7
 #include <ngx_config.h>
8 8
 #include <ngx_core.h>
9 9
 #include <ngx_http.h>
  10
+#include <nginx.h>
10 11
 
11 12
 typedef enum {
12 13
     NGX_MOGILEFS_MAIN,
@@ -355,6 +356,10 @@ ngx_http_mogilefs_handler(ngx_http_request_t *r)
355 356
         return NGX_ERROR;
356 357
     }
357 358
 
  359
+#if defined nginx_version && nginx_version >= 8011
  360
+    r->main->count++;
  361
+#endif
  362
+
358 363
     ngx_http_upstream_init(r);
359 364
 
360 365
     return NGX_DONE;

0 notes on commit 65cc81f

Please sign in to comment.
Something went wrong with that request. Please try again.