Skip to content

Commit d2f6d1d

Browse files
Sułowicz Pawełdenji
Sułowicz Paweł
authored andcommitted
Fix compatibility with nginx-1.11.6+
1 parent 9077804 commit d2f6d1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ngx_cache_purge_module.c

+4
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,11 @@ typedef struct {
518518
ngx_str_t body_source;
519519
# endif /* nginx_version < 1007008 */
520520

521+
# if (nginx_version >= 1011006)
522+
ngx_http_complex_value_t *method;
523+
# else
521524
ngx_str_t method;
525+
# endif /* nginx_version >= 1011006 */
522526
ngx_str_t location;
523527
ngx_str_t url;
524528

0 commit comments

Comments
 (0)