File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
google-cloud-datastore/src
main/java/com/google/cloud/datastore
test/java/com/google/cloud/datastore Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public static boolean isLocalHost(String host) {
45
45
46
46
public static String removeScheme (String url ) {
47
47
if (url != null ) {
48
+ url = url .toLowerCase ();
48
49
if (url .startsWith ("https://" )) {
49
50
return url .substring ("https://" .length ());
50
51
} else if (url .startsWith ("http://" )) {
Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ public void testRemoveScheme() {
38
38
assertThat (removeScheme ("http://localhost:9090" )).isEqualTo ("localhost:9090" );
39
39
assertThat (removeScheme ("https://localhost:9090" )).isEqualTo ("localhost:9090" );
40
40
assertThat (removeScheme ("https://localhost:9090" )).isEqualTo ("localhost:9090" );
41
+ assertThat (removeScheme ("Https://localhost:9090" )).isEqualTo ("localhost:9090" );
41
42
}
42
43
}
You can’t perform that action at this time.
0 commit comments