summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-12-15 13:57:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-12-15 13:57:13 +0000
commite3466a4058ec3a6c7915f5239fac9f6bfbb6a29d (patch)
treeccdc53e91c406a40a83657886407de9bda1f6531 /src/http
parentdc867cd0fed793f86ce2b460f8c2ad069ddec1b5 (diff)
downloadnginx-e3466a4058ec3a6c7915f5239fac9f6bfbb6a29d.tar.gz
nginx-e3466a4058ec3a6c7915f5239fac9f6bfbb6a29d.tar.bz2
nginx-0.0.1-2003-12-15-16:57:13 import
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_core_module.c8
-rw-r--r--src/http/ngx_http_write_filter.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 6d20fdf7f..6d5bc0dd8 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -346,17 +346,17 @@ static void ngx_http_run_phases(ngx_http_request_t *r)
continue;
}
- if (rc == NGX_AGAIN) {
+ if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
+ ngx_http_finalize_request(r, rc);
return;
}
- if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
+ if (r->phase == NGX_HTTP_CONTENT_PHASE) {
ngx_http_finalize_request(r, rc);
return;
}
- if (rc == NGX_OK && r->phase == NGX_HTTP_CONTENT_PHASE) {
- ngx_http_finalize_request(r, 0);
+ if (rc == NGX_AGAIN) {
return;
}
diff --git a/src/http/ngx_http_write_filter.c b/src/http/ngx_http_write_filter.c
index 50f7f9376..271ed17a4 100644
--- a/src/http/ngx_http_write_filter.c
+++ b/src/http/ngx_http_write_filter.c
@@ -24,7 +24,7 @@ static int ngx_http_write_filter_init(ngx_cycle_t *cycle);
static ngx_command_t ngx_http_write_filter_commands[] = {
{ ngx_string("buffer_output"),
- NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_conf_set_size_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_write_filter_conf_t, buffer_output),