Allow putting '://' in hostname i.e. to support https addresses.
{
gchar *full = NULL;
- if ( hostname && strstr ( hostname, "://" ) != NULL )
- /* Already full url */
- full = (gchar *) hostname;
+ if ( hostname && strstr ( hostname, "://" ) != NULL ) {
+ if ( uri && strlen ( uri ) > 1 )
+ // Simply append them together
+ full = g_strdup_printf ( "%s%s", hostname, uri );
+ else
+ /* Already full url */
+ full = (gchar *) hostname;
+ }
else if ( uri && strstr ( uri, "://" ) != NULL )
/* Already full url */
full = (gchar *) uri;