File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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+
2236if [ -n "$ngx_module_link" ]; then
2337 ngx_module_type=HTTP_AUX_FILTER
2438 ngx_module_name=$ngx_addon_name
You can’t perform that action at this time.
0 commit comments