Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 160:e7e094d34162
nginx-0.0.1-2003-10-27-11:53:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Oct 2003 08:53:49 +0000 |
parents | 981e4af2a425 |
children | 96993d4d5067 |
comparison
equal
deleted
inserted
replaced
159:981e4af2a425 | 160:e7e094d34162 |
---|---|
230 case NGX_HTTP_CONNECTION_KEEP_ALIVE: | 230 case NGX_HTTP_CONNECTION_KEEP_ALIVE: |
231 r->keepalive = 1; | 231 r->keepalive = 1; |
232 break; | 232 break; |
233 } | 233 } |
234 | 234 |
235 #if 1 | 235 #if 0 |
236 /* TEST STUB */ r->http_version = NGX_HTTP_VERSION_10; | 236 /* TEST STUB */ r->http_version = NGX_HTTP_VERSION_10; |
237 /* TEST STUB */ r->keepalive = 0; | 237 /* TEST STUB */ r->keepalive = 0; |
238 #endif | 238 #endif |
239 | 239 |
240 if (r->headers_in.content_length_n > 0) { | 240 if (r->headers_in.content_length_n > 0) { |
290 r->phase_handler--) | 290 r->phase_handler--) |
291 { | 291 { |
292 rc = h[r->phase_handler](r); | 292 rc = h[r->phase_handler](r); |
293 | 293 |
294 if (rc == NGX_DONE) { | 294 if (rc == NGX_DONE) { |
295 return; | |
296 } | |
297 | |
298 /* TODO THINK: is it dupliate NGX_DONE ??? */ | |
299 if (r->closed) { | |
300 return; | 295 return; |
301 } | 296 } |
302 | 297 |
303 if (rc == NGX_DECLINED) { | 298 if (rc == NGX_DECLINED) { |
304 continue; | 299 continue; |
401 } | 396 } |
402 | 397 |
403 | 398 |
404 int ngx_http_send_header(ngx_http_request_t *r) | 399 int ngx_http_send_header(ngx_http_request_t *r) |
405 { | 400 { |
401 if (r->main) { | |
402 return NGX_OK; | |
403 } | |
404 | |
406 return (*ngx_http_top_header_filter)(r); | 405 return (*ngx_http_top_header_filter)(r); |
407 } | 406 } |
408 | 407 |
409 | 408 |
410 int ngx_http_redirect(ngx_http_request_t *r, int redirect) | 409 int ngx_http_redirect(ngx_http_request_t *r, int redirect) |