File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,21 @@ HTTP_SRCACHE_FILTER_DEPS=" \
19
19
$ngx_addon_dir/src/ngx_http_srcache_headers.h \
20
20
"
21
21
22
- # nginx won't have HTTP_POSTPONE_FILTER_MODULE & HTTP_POSTPONE_FILTER_SRCS
23
- # defined since 1.9.11
24
- if test -z "$HTTP_POSTPONE_FILTER_MODULE"; then
25
- HTTP_POSTPONE_FILTER_MODULE=ngx_http_postpone_filter_module
26
- HTTP_POSTPONE_FILTER_SRCS=src/http/ngx_http_postpone_filter_module.c
27
- fi
22
+ # nginx 1.17.0+ unconditionally enables the postpone filter
23
+ if [ ! -z "$HTTP_POSTPONE" ]; then
24
+ # nginx won't have HTTP_POSTPONE_FILTER_MODULE & HTTP_POSTPONE_FILTER_SRCS
25
+ # defined since 1.9.11
26
+ if [ -z "$HTTP_POSTPONE_FILTER_MODULE" ]; then
27
+ HTTP_POSTPONE_FILTER_MODULE=ngx_http_postpone_filter_module
28
+ HTTP_POSTPONE_FILTER_SRCS=src/http/ngx_http_postpone_filter_module.c
29
+ fi
28
30
29
- # This module depends upon the postpone filter being activated
30
- if [ $HTTP_POSTPONE != YES ]; then
31
- HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"
32
- HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"
33
- HTTP_POSTPONE=YES
31
+ # This module depends upon the postpone filter being activated
32
+ if [ $HTTP_POSTPONE != YES ]; then
33
+ HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"
34
+ HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"
35
+ HTTP_POSTPONE=YES
36
+ fi
34
37
fi
35
38
36
39
if [ -n "$ngx_module_link" ]; then
You can’t perform that action at this time.
0 commit comments