Fix http/s URIs

This commit is contained in:
M66B 2023-07-22 06:55:32 +02:00
parent ad7967af84
commit 9f32fcf577
1 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,8 @@ public class UriHelper {
}
static Uri fix(Uri uri) {
if ("HTTP".equals(uri.getScheme()) || "HTTPS".equals(uri.getScheme())) {
if ((!"http".equals(uri.getScheme()) && "http".equalsIgnoreCase(uri.getScheme())) ||
(!"https".equals(uri.getScheme()) && "https".equalsIgnoreCase(uri.getScheme()))) {
String u = uri.toString();
int semi = u.indexOf(':');
if (semi > 0)