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) {
4545
4646 public static String removeScheme (String url ) {
4747 if (url != null ) {
48+ url = url .toLowerCase ();
4849 if (url .startsWith ("https://" )) {
4950 return url .substring ("https://" .length ());
5051 } else if (url .startsWith ("http://" )) {
Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ public void testRemoveScheme() {
3838 assertThat (removeScheme ("http://localhost:9090" )).isEqualTo ("localhost:9090" );
3939 assertThat (removeScheme ("https://localhost:9090" )).isEqualTo ("localhost:9090" );
4040 assertThat (removeScheme ("https://localhost:9090" )).isEqualTo ("localhost:9090" );
41+ assertThat (removeScheme ("Https://localhost:9090" )).isEqualTo ("localhost:9090" );
4142 }
4243}
You can’t perform that action at this time.
0 commit comments