You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/www-servers/nginx/files/http_cache_purge-1.11.6+.patch

23 lines
615 B

Fix compatibility with nginx-1.11.6+
https://github.com/FRiCKLE/ngx_cache_purge/pull/51
---
ngx_cache_purge_module.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/ngx_cache_purge_module.c
+++ b/ngx_cache_purge_module.c
@@ -492,7 +492,11 @@ 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 /* nginx_version >= 1011006 */
ngx_str_t location;
ngx_str_t url;