Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow all HTTP response status except for NO_CONTENT (#7)
  • Loading branch information
dragon3 committed Jul 8, 2017
1 parent 3354d5b commit 40c2acf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ngx_http_length_hiding_filter_module.c
Expand Up @@ -102,8 +102,7 @@ ngx_http_length_hiding_header_filter(ngx_http_request_t *r)
cf = ngx_http_get_module_loc_conf(r, ngx_http_length_hiding_filter_module);

if(!cf->enable
|| ( r->headers_out.status != NGX_HTTP_OK
|| r->headers_out.status == NGX_HTTP_NO_CONTENT )
|| r->headers_out.status == NGX_HTTP_NO_CONTENT
|| r->header_only
|| (r->method & NGX_HTTP_HEAD)
|| r != r->main
Expand Down

0 comments on commit 40c2acf

Please sign in to comment.