Permalink
Browse files

Compatibility with nginx API 0.8.11

  • Loading branch information...
1 parent e296d16 commit 65cc81f92b6145a9c6978d98ed737869b8b70d08 Valery Kholodkov committed Sep 17, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 ngx_http_mogilefs_module.c
@@ -7,6 +7,7 @@
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
+#include <nginx.h>
typedef enum {
NGX_MOGILEFS_MAIN,
@@ -355,6 +356,10 @@ ngx_http_mogilefs_handler(ngx_http_request_t *r)
return NGX_ERROR;
}
+#if defined nginx_version && nginx_version >= 8011
+ r->main->count++;
+#endif
+
ngx_http_upstream_init(r);
return NGX_DONE;

0 comments on commit 65cc81f

Please sign in to comment.