Klaus Demo nginx / fa62656
fix segfault Igor Sysoev 14 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
636636
637637 plcf = ngx_http_get_module_loc_conf(r, ngx_http_proxy_module);
638638
639 len = sizeof(ngx_http_proxy_version) - 1 + sizeof(CRLF) - 1;
640
641639 if (u->method.len) {
642640 /* HEAD was changed to GET to cache response */
643641 method = u->method;
651649 method.len++;
652650 }
653651
652 len = method.len + sizeof(ngx_http_proxy_version) - 1 + sizeof(CRLF) - 1;
653
654654 escape = 0;
655655 loc_len = 0;
656656 unparsed_uri = 0;
658658 ctx = ngx_http_get_module_ctx(r, ngx_http_proxy_module);
659659
660660 if (plcf->proxy_lengths) {
661 len += method.len + ctx->vars.uri.len;
661 len += ctx->vars.uri.len;
662662
663663 } else if (ctx->vars.uri.len == 0 && r->valid_unparsed_uri && r == r->main)
664664 {
665665 unparsed_uri = 1;
666 len += method.len + r->unparsed_uri.len;
666 len += r->unparsed_uri.len;
667667
668668 } else {
669669 loc_len = (r->valid_location && ctx->vars.uri.len) ?