1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Fix identifying the scheme portion of a URL

This commit is contained in:
hogliux 2016-06-16 12:05:25 +01:00
parent 72083c1bcf
commit 042bd2be13

View file

@ -136,7 +136,7 @@ namespace URLHelpers
|| url[i] == '+' || url[i] == '-' || url[i] == '.')
++i;
return url[i] == ':' ? i + 1 : 0;
return url.substring (i) == "://" ? i + 1 : 0;
}
static int findStartOfNetLocation (const String& url)