From 6fda35070cadc83a6b78c85896fcaf85299e5ad8 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 15 Jan 2006 17:41:55 +0100 Subject: Fixed a bug in url.c that interpreted all http-urls as https. --- url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'url.c') diff --git a/url.c b/url.c index 816f4ef3..e4deac78 100644 --- a/url.c +++ b/url.c @@ -39,10 +39,10 @@ int url_set( url_t *url, char *set_url ) } else { - if( g_strncasecmp( set_url, "https", i - set_url ) == 0 ) - url->proto = PROTO_HTTPS; - else if( g_strncasecmp( set_url, "http", i - set_url ) == 0 ) + if( g_strncasecmp( set_url, "http", i - set_url ) == 0 ) url->proto = PROTO_HTTP; + else if( g_strncasecmp( set_url, "https", i - set_url ) == 0 ) + url->proto = PROTO_HTTPS; else if( g_strncasecmp( set_url, "socks4", i - set_url ) == 0 ) url->proto = PROTO_SOCKS4; else if( g_strncasecmp( set_url, "socks5", i - set_url ) == 0 ) -- cgit v1.2.3