Skip to content

Commit 188ae32

Browse files
committed
bugfix: this module should not depend on builtin modules like http_ssi and http_addition to pull in the http_postpone module to function properly.
thanks Dejiang Zhu for the original patch.
1 parent bad5677 commit 188ae32

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ HTTP_SRCACHE_FILTER_DEPS=" \
1919
$ngx_addon_dir/src/ngx_http_srcache_headers.h \
2020
"
2121

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
28+
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
34+
fi
35+
2236
if [ -n "$ngx_module_link" ]; then
2337
ngx_module_type=HTTP_AUX_FILTER
2438
ngx_module_name=$ngx_addon_name

0 commit comments

Comments
 (0)