Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 716:d8d7c39e3a76
allowing handling 400 errors via proxy_pass
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 25 Sep 2006 17:49:49 +0000 |
parents | cbd18f013385 |
children | 86bb73dc8d40 |
comparison
equal
deleted
inserted
replaced
715:cbd18f013385 | 716:d8d7c39e3a76 |
---|---|
512 r->lingering_close = 1; | 512 r->lingering_close = 1; |
513 | 513 |
514 } else { | 514 } else { |
515 r->lingering_close = 0; | 515 r->lingering_close = 0; |
516 } | 516 } |
517 } | 517 |
518 | |
519 r->valid_unparsed_uri = 1; | |
520 r->valid_location = 1; | |
521 | |
522 if (!r->internal) { | |
523 r->phase_handler = 0; | 518 r->phase_handler = 0; |
524 | 519 |
525 } else { | 520 } else { |
526 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); | 521 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); |
527 r->phase_handler = cmcf->phase_engine.server_rewrite_index; | 522 r->phase_handler = cmcf->phase_engine.server_rewrite_index; |
528 } | 523 } |
524 | |
525 if (r->unparsed_uri.len) { | |
526 r->valid_unparsed_uri = 1; | |
527 } | |
528 | |
529 r->valid_location = 1; | |
529 | 530 |
530 r->write_event_handler = ngx_http_core_run_phases; | 531 r->write_event_handler = ngx_http_core_run_phases; |
531 ngx_http_core_run_phases(r); | 532 ngx_http_core_run_phases(r); |
532 } | 533 } |
533 | 534 |