comparison src/http/modules/ngx_http_addition_filter_module.c @ 274:052a7b1d40e5 NGINX_0_5_7

nginx 0.5.7 *) Feature: the ssl_session_cache storage optimization. *) Bugfixes in the "ssl_session_cache" and "limit_zone" directives. *) Bugfix: the segmentation fault was occurred on start or while reconfiguration if the "ssl_session_cache" or "limit_zone" directives were used on 64-bit platforms. *) Bugfix: a segmentation fault occurred if the "add_before_body" or "add_after_body" directives were used and there was no "Content-Type" header line in response. *) Bugfix: the OpenSSL library was always built with the threads support. Thanks to Den Ivanov. *) Bugfix: the PCRE-6.5+ library and the icc compiler compatibility.
author Igor Sysoev <http://sysoev.ru>
date Mon, 15 Jan 2007 00:00:00 +0300
parents 2e9c57a5e50a
children 5bef04fc3fd5
comparison
equal deleted inserted replaced
273:60df8db42ffb 274:052a7b1d40e5
85 ngx_http_addition_header_filter(ngx_http_request_t *r) 85 ngx_http_addition_header_filter(ngx_http_request_t *r)
86 { 86 {
87 ngx_http_addition_ctx_t *ctx; 87 ngx_http_addition_ctx_t *ctx;
88 ngx_http_addition_conf_t *conf; 88 ngx_http_addition_conf_t *conf;
89 89
90 if (r->headers_out.status != NGX_HTTP_OK || r != r->main) { 90 if (r->headers_out.status != NGX_HTTP_OK
91 || r != r->main
92 || r->headers_out.content_type.data == NULL)
93 {
91 return ngx_http_next_header_filter(r); 94 return ngx_http_next_header_filter(r);
92 } 95 }
93 96
94 conf = ngx_http_get_module_loc_conf(r, ngx_http_addition_filter_module); 97 conf = ngx_http_get_module_loc_conf(r, ngx_http_addition_filter_module);
95 98