FRiCKLE / ngx_cache_purge

nginx module which adds ability to purge content from FastCGI, proxy, SCGI and uWSGI caches.
http://labs.frickle.com/nginx_ngx_cache_purge/
Other
1.06k stars 310 forks source link

'segmentation fault' happens when nginx_version >= 1011006 #68

Open ling-zhou opened 5 years ago

ling-zhou commented 5 years ago

fixing patch:

--- ngx_cache_purge_module.c
+++ ngx_cache_purge_module.c
@@ -492,7 +492,12 @@ typedef struct {
     ngx_str_t                      body_source;
 #  endif /* nginx_version < 1007008 */

+#  if (nginx_version >= 1011006)
+    ngx_http_complex_value_t      *method;
+#  else
     ngx_str_t                      method;
+#  endif
+
     ngx_str_t                      location;
     ngx_str_t                      url;