aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-10 15:10:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-10 15:10:50 +0000
commitb3e73d869ecef9248468e0ccc2d7d0abdbee495c (patch)
tree78f032c1884aca4879ef86ce15f10f923111f66e /src/http/ngx_http_special_response.c
parent1342d9cc29de7b6509a44a49cd66d1038d1e6d26 (diff)
downloadnginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.tar.gz
nginx-b3e73d869ecef9248468e0ccc2d7d0abdbee495c.zip
nginx-0.0.1-2003-10-10-19:10:50 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 736211654..825d8bc97 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -200,20 +200,8 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
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;
+ if (rc == NGX_ERROR || r->header_only) {
+ return rc;
}
if (error_pages[err].len == 0) {
@@ -236,7 +224,7 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
h->pos = error_tail;
h->last = error_tail + sizeof(error_tail) - 1;
- if (1) {
+ if (/* STUB: "msie_padding on/off" */ 1) {
if (ngx_http_output_filter(r, h) == NGX_ERROR) {
return NGX_ERROR;
}
@@ -250,19 +238,5 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
h->type |= NGX_HUNK_LAST;
- 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;
-
+ return ngx_http_output_filter(r, h);
}