comparison src/http/modules/ngx_http_ssi_filter_module.c @ 1269:56f2d7ff4034 stable-0.5

r1262 merge: if a subrequest was finished and SSI was in middle of SSI command parsing and the command was a fast subrequest then the second subrequest output was just after first subrequest output and response part of main request between the subrequests went after the second subrequest.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 05 Jul 2007 11:36:16 +0000
parents 827ab2d114b5
children e30e9de091b7
comparison
equal deleted inserted replaced
1267:8b588e11c29b 1269:56f2d7ff4034
798 798
799 goto ssi_error; 799 goto ssi_error;
800 } 800 }
801 } 801 }
802 802
803 if (cmd->flush && ctx->out) { 803 if (cmd->flush) {
804 rc = ngx_http_ssi_output(r, ctx); 804
805 if (ctx->out) {
806 rc = ngx_http_ssi_output(r, ctx);
807
808 } else {
809 rc = ngx_http_next_body_filter(r, NULL);
810 }
805 811
806 if (rc == NGX_ERROR) { 812 if (rc == NGX_ERROR) {
807 return NGX_ERROR; 813 return NGX_ERROR;
808 } 814 }
809 } 815 }