mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx-0.0.1-2004-01-26-20:22:04 import
This commit is contained in:
parent
e04084c1b2
commit
f0d7ac8a2c
@ -194,10 +194,6 @@ static int ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
ctx->prev = 0;
|
ctx->prev = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->pos == ctx->buf->last) {
|
|
||||||
ctx->prev = ctx->buf->last - ctx->last;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(hunk = ngx_calloc_hunk(r->pool))) {
|
if (!(hunk = ngx_calloc_hunk(r->pool))) {
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
@ -212,6 +208,10 @@ static int ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
*ctx->last_out = cl;
|
*ctx->last_out = cl;
|
||||||
ctx->last_out = &cl->next;
|
ctx->last_out = &cl->next;
|
||||||
|
|
||||||
|
if (ctx->pos == ctx->buf->last) {
|
||||||
|
ctx->prev = ctx->buf->last - ctx->last;
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -236,6 +236,8 @@ static int ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
ctx->last_out = &cl->next;
|
ctx->last_out = &cl->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx->buf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->out) {
|
if (ctx->out) {
|
||||||
@ -256,6 +258,7 @@ static int ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx->out = NULL;
|
ctx->out = NULL;
|
||||||
|
ctx->last_out = &ctx->out;
|
||||||
|
|
||||||
while (ctx->busy) {
|
while (ctx->busy) {
|
||||||
if (ngx_hunk_size(ctx->busy->hunk) != 0) {
|
if (ngx_hunk_size(ctx->busy->hunk) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user