aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-01 23:48:37 +0100
committerJelmer Vernooij <jelmer@samba.org>2006-03-01 23:48:37 +0100
commita4dc9f77de03eb46ecabed02dbd1b678319cf11d (patch)
tree71a8dfa927ea2ac4bfc30a36b4d9324a51247aeb /url.c
parent8e419cb4f86679636b2d96618e1bec4853636c11 (diff)
parent9a1555dc8521f0973347911bcb26d1038259f967 (diff)
[merge] Wilmer
Diffstat (limited to 'url.c')
-rw-r--r--url.c6
1 files changed, 3 insertions, 3 deletions
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 )