comparison src/http/modules/ngx_http_ssi_filter_module.c @ 454:a8424ffa495c NGINX_0_7_39

nginx 0.7.39 *) Bugfix: large response with SSI might hang, if gzipping was enabled; the bug had appeared in 0.7.28. Thanks to Artem Bokhan. *) Bugfix: a segmentation fault might occur in worker process, if short static variants are used in a "try_files" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 02 Mar 2009 00:00:00 +0300
parents 49a0eb7ce20c
children f39b9e29530d
comparison
equal deleted inserted replaced
453:9ef0e36f3cd5 454:a8424ffa495c
395 } 395 }
396 396
397 /* add the incoming chain to the chain ctx->in */ 397 /* add the incoming chain to the chain ctx->in */
398 398
399 if (in) { 399 if (in) {
400 if (ngx_chain_add_copy(r->pool, &ctx->in, in) == NGX_ERROR) { 400 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) {
401 return NGX_ERROR; 401 return NGX_ERROR;
402 } 402 }
403 } 403 }
404 404
405 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 405 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
2058 "ssi stub output: \"%V?%V\"", &r->uri, &r->args); 2058 "ssi stub output: \"%V?%V\"", &r->uri, &r->args);
2059 2059
2060 out = data; 2060 out = data;
2061 2061
2062 if (!r->header_sent) { 2062 if (!r->header_sent) {
2063 if (ngx_http_set_content_type(r) == NGX_ERROR) { 2063 if (ngx_http_set_content_type(r) != NGX_OK) {
2064 return NGX_ERROR; 2064 return NGX_ERROR;
2065 } 2065 }
2066 2066
2067 if (ngx_http_send_header(r) == NGX_ERROR) { 2067 if (ngx_http_send_header(r) == NGX_ERROR) {
2068 return NGX_ERROR; 2068 return NGX_ERROR;