fix gzip and SSL

This commit is contained in:
Igor Sysoev 2007-11-08 15:21:22 +00:00
parent eae2ca31df
commit 90901080d0

View file

@ -837,13 +837,16 @@ ngx_http_gzip_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
} }
} }
if (last == NGX_AGAIN && !ctx->done) { if (ctx->out == NULL) {
if (last == NGX_AGAIN) {
return NGX_AGAIN; return NGX_AGAIN;
} }
if (ctx->out == NULL && ctx->busy == NULL) { if (ctx->busy == NULL) {
return NGX_OK; return NGX_OK;
} }
}
last = ngx_http_next_body_filter(r, ctx->out); last = ngx_http_next_body_filter(r, ctx->out);