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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user