diff src/http/modules/ngx_http_addition_filter_module.c @ 194:003bd800ec2a NGINX_0_3_44

nginx 0.3.44 *) Feature: the "wait" parameter in the "include" SSI command. *) Feature: the Ukrainian and Byelorussian characters were added to koi-win conversion table. *) Bugfix: in the SSI.
author Igor Sysoev <http://sysoev.ru>
date Thu, 04 May 2006 00:00:00 +0400
parents 4cd3e70c4d60
children fa32d59d9a15
line wrap: on
line diff
--- a/src/http/modules/ngx_http_addition_filter_module.c
+++ b/src/http/modules/ngx_http_addition_filter_module.c
@@ -143,7 +143,9 @@ ngx_http_addition_body_filter(ngx_http_r
         ctx->before_body_sent = 1;
 
         if (conf->before_body.len) {
-            if (ngx_http_subrequest(r, &conf->before_body, NULL, 0) != NGX_OK) {
+            if (ngx_http_subrequest(r, &conf->before_body, NULL, 0)
+                == NGX_ERROR)
+            {
                 return NGX_ERROR;
             }
         }
@@ -165,7 +167,7 @@ ngx_http_addition_body_filter(ngx_http_r
         return rc;
     }
 
-    if (ngx_http_subrequest(r, &conf->after_body, NULL, 0) != NGX_OK) {
+    if (ngx_http_subrequest(r, &conf->after_body, NULL, 0) == NGX_ERROR) {
         return NGX_ERROR;
     }