Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix compatibility with nginx-0.8.40+.

  • Loading branch information...
commit 115ffb0fbade765381a951453b45acae88bee91f 1 parent 6342f4d
Piotr Sikora PiotrSikora authored
Showing with 12 additions and 2 deletions.
  1. +3 −0  CHANGES
  2. +9 −2 ngx_cache_purge_module.c
3  CHANGES
View
@@ -1,3 +1,6 @@
+2010-06-08
+ * Fix compatibility with nginx-0.8.40+.
+
2010-01-10 VERSION 1.0
* Initial module release.
11 ngx_cache_purge_module.c
View
@@ -109,8 +109,8 @@ CRLF "</center>" CRLF
"</html>" CRLF
;
-ngx_module_t ngx_http_fastcgi_module;
-ngx_module_t ngx_http_proxy_module;
+extern ngx_module_t ngx_http_fastcgi_module;
+extern ngx_module_t ngx_http_proxy_module;
/* this is ugly workaround, find better solution... */
typedef struct {
@@ -127,6 +127,11 @@ typedef struct {
ngx_array_t *fastcgi_lengths;
ngx_array_t *fastcgi_values;
+#if defined(nginx_version) && (nginx_version >= 8040)
+ ngx_hash_t headers_hash;
+ ngx_uint_t header_params;
+#endif
+
ngx_http_complex_value_t cache_key;
#if (NGX_PCRE)
@@ -154,7 +159,9 @@ typedef struct {
ngx_hash_t headers_set_hash;
ngx_array_t *headers_source;
+#if defined(nginx_version) && (nginx_version < 8040)
ngx_array_t *headers_names;
+#endif
ngx_array_t *proxy_lengths;
ngx_array_t *proxy_values;
Please sign in to comment.
Something went wrong with that request. Please try again.