diff src/core/ngx_output_chain.c @ 164:84036764e215

nginx-0.0.1-2003-10-29-11:30:44 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 29 Oct 2003 08:30:44 +0000
parents 96993d4d5067
children 389d7ee9fa60
line wrap: on
line diff
--- a/src/core/ngx_output_chain.c
+++ b/src/core/ngx_output_chain.c
@@ -47,6 +47,7 @@ int ngx_output_chain(ngx_output_chain_ct
     }
 
     last = NGX_NONE;
+    out = NULL;
     last_out = &out;
 
     for ( ;; ) {
@@ -167,7 +168,7 @@ ngx_inline static int ngx_output_chain_n
         return 0;
     }
 
-    if (!ctx->sendfile) {
+    if (!ctx->sendfile && (!(hunk->type & NGX_HUNK_IN_MEMORY))) {
         return 1;
     }