On Mon, Nov 16, 2015 at 6:38 PM, Yann Ylavic <ylavic....@gmail.com> wrote:
>
> Could you please try the following patch and see if it helps?
>
> Index: modules/proxy/proxy_util.c
> ===================================================================
> --- modules/proxy/proxy_util.c    (revision 1714617)
> +++ modules/proxy/proxy_util.c    (working copy)
[]
>  PROXY_DECLARE(apr_port_t) ap_proxy_port_of_scheme(const char *scheme)
>  {
>      if (scheme) {
[]
> +        switch (ap_tolower(*scheme)) {
[]
> +        case 'h':
> +            if (strncasecmp(scheme + 1, "ttp", 4) == 0) {

Actually this should be strncasecmp(scheme + 1, "ttp", 3)...

> +                int s4 = ap_tolower(scheme[4]);
> +                if (!s4) {
> +                    return APR_URI_HTTP_DEFAULT_PORT;
>                  }
> +                else if (s4 == 's' && !scheme[5]) {
> +                    return APR_URI_HTTPS_DEFAULT_PORT;
> +                }
>              }
> +            break;

Reply via email to