mirror of
https://github.com/apache/httpd.git
synced 2025-08-01 16:41:19 +00:00
mod_proxy_uwsgi: Honor "proxy-nocanon" and "proxy-noencode".
Just like the other proxy modules. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -84,8 +84,14 @@ static int uwsgi_canon(request_rec *r, char *url)
|
||||
host = apr_pstrcat(r->pool, "[", host, "]", NULL);
|
||||
}
|
||||
|
||||
path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
|
||||
r->proxyreq);
|
||||
if (apr_table_get(r->notes, "proxy-nocanon")
|
||||
|| apr_table_get(r->notes, "proxy-noencode")) {
|
||||
path = url; /* this is the raw/encoded path */
|
||||
}
|
||||
else {
|
||||
path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
|
||||
r->proxyreq);
|
||||
}
|
||||
if (!path) {
|
||||
return HTTP_BAD_REQUEST;
|
||||
}
|
||||
|
Reference in New Issue
Block a user