'segmentation fault' happens when nginx_version >= 1011006
ling-zhou opened this issue · 0 comments
ling-zhou commented
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;