summaryrefslogtreecommitdiff
path: root/www-servers/nginx/files/http_cache_purge-1.11.6+.patch
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2023-06-30 16:08:08 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2023-06-30 16:08:08 +0200
commitcdda7e3aba7adaef12c3d598c494988820a501f1 (patch)
tree66aa1a36b88714a3a36d1f97ae7348d69a429d0b /www-servers/nginx/files/http_cache_purge-1.11.6+.patch
parentbcfe2d68926ea38816109f607789eef9b0405cb4 (diff)
downloadportage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.gz
portage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.bz2
portage-cdda7e3aba7adaef12c3d598c494988820a501f1.zip
www-servers/nginx fork with updated lua modules
Diffstat (limited to 'www-servers/nginx/files/http_cache_purge-1.11.6+.patch')
-rw-r--r--www-servers/nginx/files/http_cache_purge-1.11.6+.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/www-servers/nginx/files/http_cache_purge-1.11.6+.patch b/www-servers/nginx/files/http_cache_purge-1.11.6+.patch
new file mode 100644
index 0000000..c4596bf
--- /dev/null
+++ b/www-servers/nginx/files/http_cache_purge-1.11.6+.patch
@@ -0,0 +1,22 @@
+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;
+