Skip to content
Browse files

enable the substitution with non-200 response

  • Loading branch information...
1 parent e3291ac commit 0573ab3b5972227d0caa7084ce57fae5f29004ee @yaoweibin committed Mar 14, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 ngx_http_subs_filter_module.c
View
5 ngx_http_subs_filter_module.c
@@ -208,8 +208,7 @@ ngx_http_subs_header_filter(ngx_http_request_t *r)
if (slcf->sub_pairs->nelts == 0
|| r->header_only
|| r->headers_out.content_type.len == 0
- || r->headers_out.content_length_n == 0
- || r->headers_out.status != NGX_HTTP_OK)
+ || r->headers_out.content_length_n == 0)
{
return ngx_http_next_header_filter(r);
}
@@ -894,7 +893,7 @@ ngx_http_subs_out_chain_append(ngx_http_request_t *r,
while (1) {
- len = ngx_buf_size(b);
+ len = (size_t) ngx_buf_size(b);
if (len == 0) {
break;
}

0 comments on commit 0573ab3

Please sign in to comment.
Something went wrong with that request. Please try again.