1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

adjust to apr_uri_ rename

Submitted by:	dougm@apache.org
Reviewed by:	ianh@apache.org


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ian Holsman
2001-08-20 16:49:29 +00:00
parent bc7292bcb2
commit af3b2ee457
5 changed files with 22 additions and 18 deletions

View File

@@ -244,15 +244,15 @@ static int proxy_needsdomain(request_rec *r, const char *url, const char *domain
/* Note that the domain name always starts with a dot */
r->parsed_uri.hostname = apr_pstrcat(r->pool, r->parsed_uri.hostname,
domain, NULL);
nuri = apr_uri_unparse_components(r->pool,
nuri = apr_uri_unparse(r->pool,
&r->parsed_uri,
UNP_REVEALPASSWORD);
APR_URI_UNP_REVEALPASSWORD);
apr_table_set(r->headers_out, "Location", nuri);
ap_log_rerror(APLOG_MARK, APLOG_INFO|APLOG_NOERRNO, 0, r,
"Domain missing: %s sent to %s%s%s", r->uri,
apr_uri_unparse_components(r->pool, &r->parsed_uri,
UNP_OMITUSERINFO),
apr_uri_unparse(r->pool, &r->parsed_uri,
APR_URI_UNP_OMITUSERINFO),
ref ? " from " : "", ref ? ref : "");
return HTTP_MOVED_PERMANENTLY;