Skip to content

Commit 115ffb0

Browse files
committed
Fix compatibility with nginx-0.8.40+.
1 parent 6342f4d commit 115ffb0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2010-06-08
2+
* Fix compatibility with nginx-0.8.40+.
3+
14
2010-01-10 VERSION 1.0
25
* Initial module release.
36

ngx_cache_purge_module.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ CRLF "</center>" CRLF
109109
"</html>" CRLF
110110
;
111111

112-
ngx_module_t ngx_http_fastcgi_module;
113-
ngx_module_t ngx_http_proxy_module;
112+
extern ngx_module_t ngx_http_fastcgi_module;
113+
extern ngx_module_t ngx_http_proxy_module;
114114

115115
/* this is ugly workaround, find better solution... */
116116
typedef struct {
@@ -127,6 +127,11 @@ typedef struct {
127127
ngx_array_t *fastcgi_lengths;
128128
ngx_array_t *fastcgi_values;
129129

130+
#if defined(nginx_version) && (nginx_version >= 8040)
131+
ngx_hash_t headers_hash;
132+
ngx_uint_t header_params;
133+
#endif
134+
130135
ngx_http_complex_value_t cache_key;
131136

132137
#if (NGX_PCRE)
@@ -154,7 +159,9 @@ typedef struct {
154159
ngx_hash_t headers_set_hash;
155160

156161
ngx_array_t *headers_source;
162+
#if defined(nginx_version) && (nginx_version < 8040)
157163
ngx_array_t *headers_names;
164+
#endif
158165

159166
ngx_array_t *proxy_lengths;
160167
ngx_array_t *proxy_values;

0 commit comments

Comments
 (0)