Mercurial > hg > ngx_http_bytes_filter_module
changeset 20:b676808a49bc
Compatibility with nginx 1.9.10.
This includes using HTTP_INIT_FILTER module type, and new style
configuration to allow dynamic compilation.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 08 Feb 2016 19:27:18 +0300 |
parents | 57365655ee44 |
children | 180d415c0e59 |
files | config |
diffstat | 1 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/config +++ b/config @@ -3,8 +3,22 @@ ngx_addon_name="ngx_http_bytes_filter_module" +if test -n "$ngx_module_link"; then + +ngx_module_type=HTTP_INIT_FILTER +ngx_module_name=ngx_http_bytes_filter_module +ngx_module_incs= +ngx_module_deps= +ngx_module_srcs=$ngx_addon_dir/ngx_http_bytes_filter_module.c +ngx_module_libs= + +. auto/module + +else + HTTP_RANGE_BODY_FILTER_MODULE="$HTTP_RANGE_BODY_FILTER_MODULE \ ngx_http_bytes_filter_module" - NGX_ADDON_SRCS="$NGX_ADDON_SRCS \ $ngx_addon_dir/ngx_http_bytes_filter_module.c" + +fi