(Yet Another Proxy Janitor Botched-Up Job).
Need to be looking for APR_SUCCESS here, not HTTP_OK.
Obtained from: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89213
13f79535-47bb-0310-9956-
ffa450edef68
*/
/* we break the URL into host, port, uri */
- if (HTTP_OK != apr_uri_parse_hostinfo_components(p, url, &uri)) {
+ if (APR_SUCCESS != apr_uri_parse_hostinfo_components(p, url, &uri)) {
return ap_proxyerror(r, HTTP_BAD_REQUEST,
apr_pstrcat(p, "URI cannot be parsed: ", url, NULL));
}
*/
/* we break the URL into host, port, uri */
- if (HTTP_OK != apr_uri_parse_components(p, url, &uri)) {
+ if (APR_SUCCESS != apr_uri_parse_components(p, url, &uri)) {
return ap_proxyerror(r, HTTP_BAD_REQUEST,
apr_pstrcat(p,"URI cannot be parsed: ", url, NULL));
}