int hostEnd = url.substring(hostStart).indexOf("/");\r
// Handle URL which doesn't have a path (path is implicitly '/')\r
hostEnd = (hostEnd == -1 ? url.length() : hostStart + hostEnd);\r
int hostEnd = url.substring(hostStart).indexOf("/");\r
// Handle URL which doesn't have a path (path is implicitly '/')\r
hostEnd = (hostEnd == -1 ? url.length() : hostStart + hostEnd);\r