Commit 4b69f790 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* Construct a site in the reverse proxy case when there is non.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@681190 13f79535-47bb-0310-9956-ffa450edef68
parent 44d3c1f3
Loading
Loading
Loading
Loading
+7 −0
Changes for modules/proxy/mod_proxy_ftp.c: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -318,6 +318,13 @@ static apr_status_t proxy_send_dir_filter(ap_filter_t *f,

        /* Save "scheme://site" prefix without password */
        site = apr_uri_unparse(p, &f->r->parsed_uri, APR_URI_UNP_OMITPASSWORD | APR_URI_UNP_OMITPATHINFO);
        /*
         * In the reverse proxy case we usually have no site. So contruct
         * one.
         */
        if ((*site == '\0') && (r->proxyreq == PROXYREQ_REVERSE)) {
            site = ap_construct_url(p, "", r);
        }
        /* ... and path without query args */
        path = apr_uri_unparse(p, &f->r->parsed_uri, APR_URI_UNP_OMITSITEPART | APR_URI_UNP_OMITQUERY);