comparison src/http/modules/ngx_http_ssi_filter_module.c @ 2536:a6d6d762c554

small optimization: " == NGX_ERROR" > " != NGX_OK"
author Igor Sysoev <igor@sysoev.ru>
date Tue, 24 Feb 2009 10:42:23 +0000
parents e5ef47ecab5d
children c7d57b539248
comparison
equal deleted inserted replaced
2535:ec5825afc7eb 2536:a6d6d762c554
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;