aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_event.c')
-rw-r--r--src/http/ngx_http_event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c
index 1a8338b8c..948b3f726 100644
--- a/src/http/ngx_http_event.c
+++ b/src/http/ngx_http_event.c
@@ -143,6 +143,7 @@ static int ngx_http_init_request(ngx_event_t *ev)
ngx_http_request_t *r;
c = (ngx_connection_t *) ev->data;
+ c->sent = 0;
ngx_test_null(r, ngx_pcalloc(c->pool, sizeof(ngx_http_request_t)),
NGX_ERROR);
@@ -497,8 +498,6 @@ static int ngx_http_writer(ngx_event_t *ev)
c = (ngx_connection_t *) ev->data;
r = (ngx_http_request_t *) c->data;
- c->sent = 0;
-
rc = ngx_http_output_filter(r, NULL);
ngx_log_debug(ev->log, "output filter in writer: %d" _ rc);