diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-15 17:41:55 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-15 17:41:55 +0100 | 
| commit | 6fda35070cadc83a6b78c85896fcaf85299e5ad8 (patch) | |
| tree | c455a54774d343ac64607e37349170ed3fbe0fa4 | |
| parent | 74c119dd1b066329eba59d057935ba7ec7249555 (diff) | |
Fixed a bug in url.c that interpreted all http-urls as https.
| -rw-r--r-- | url.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -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 ) | 
