nginx-0.0.1-2003-10-27-11:53:49 import
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 0a4e583..ff2d26e 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -232,7 +232,7 @@
break;
}
-#if 1
+#if 0
/* TEST STUB */ r->http_version = NGX_HTTP_VERSION_10;
/* TEST STUB */ r->keepalive = 0;
#endif
@@ -295,11 +295,6 @@
return;
}
- /* TODO THINK: is it dupliate NGX_DONE ??? */
- if (r->closed) {
- return;
- }
-
if (rc == NGX_DECLINED) {
continue;
}
@@ -403,6 +398,10 @@
int ngx_http_send_header(ngx_http_request_t *r)
{
+ if (r->main) {
+ return NGX_OK;
+ }
+
return (*ngx_http_top_header_filter)(r);
}