Skip to content

Commit

Permalink
Explicitly depend upon the http_postpone_filter_module
Browse files Browse the repository at this point in the history
Previously mod_zip would mangle the output chain if another module
did not happen to require the postpone_filter module. By making this
dependency explicit we can avoid a bug when nginx is compiled with
certain configuration options.

Fixes evanmiller#17
  • Loading branch information
anthonyryan1 committed Apr 7, 2015
1 parent 0642e52 commit e5df6f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -34,5 +34,5 @@ script:

env:
- NGINX_VERSION="1.6.2"
- NGINX_VERSION="1.7.10"
- NGINX_VERSION="1.7.12"

4 changes: 4 additions & 0 deletions config
Expand Up @@ -5,6 +5,10 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_zip_parsers.c"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_zip_file.c"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_zip_headers.c"


# This module depends upon the postpone filter being activated
HTTP_MODULES="$HTTP_MODULES ngx_http_postpone_filter"

ngx_feature="iconv_open()"
ngx_feature_name="NGX_ZIP_HAVE_ICONV"
ngx_feature_run=no
Expand Down

0 comments on commit e5df6f3

Please sign in to comment.