Mercurial > hg > nginx-quic
diff src/http/ngx_http_special_response.c @ 142:cb77c084acdb
nginx-0.0.1-2003-10-09-11:00:45 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Oct 2003 07:00:45 +0000 |
parents | 6dfda4cf5200 |
children | 5526213be452 |
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -199,15 +199,19 @@ int ngx_http_special_response_handler(ng } rc = ngx_http_send_header(r); + if (rc == NGX_ERROR) { return NGX_ERROR; } if (r->header_only) { + ngx_http_finalize_request(r, rc); +#if 0 if (rc == NGX_AGAIN) { ngx_http_set_write_handler(r); return NGX_AGAIN; } +#endif return NGX_OK; } @@ -248,12 +252,16 @@ int ngx_http_special_response_handler(ng rc = ngx_http_output_filter(r, h); + ngx_http_finalize_request(r, rc); + +#if 0 if (r->main == NULL) { if (rc == NGX_AGAIN) { ngx_http_set_write_handler(r); return NGX_AGAIN; } } +#endif return NGX_OK;