One final simplification

git-svn-id: https://zxing.googlecode.com/svn/trunk@2323 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-06-25 21:18:50 +00:00
parent f47ca41725
commit 5e9f84dea2

View file

@ -75,9 +75,6 @@ public final class URIParsedResult extends ParsedResult {
} else if (isColonFollowedByPortNumber(uri, protocolEnd)) { } else if (isColonFollowedByPortNumber(uri, protocolEnd)) {
// Found a colon, but it looks like it is after the host, so the protocol is still missing // Found a colon, but it looks like it is after the host, so the protocol is still missing
uri = "http://" + uri; uri = "http://" + uri;
} else {
// Lowercase protocol to avoid problems
uri = uri.substring(0, protocolEnd) + uri.substring(protocolEnd);
} }
return uri; return uri;
} }