Skip to content

Commit

Permalink
Added test for issue 5444, IPV6 URL problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettpeter committed Oct 2, 2024
1 parent 5bdcb9e commit 8fb625f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,13 @@ public void testEquals() throws MalformedURLException {
.addEqualityGroup(new GlideUrl(url, otherHeaders), new GlideUrl(new URL(url), otherHeaders))
.testEquals();
}

@Test
public void issue_5444() throws MalformedURLException {
String original =
"http://[2600:1f13:37c:1400:ba21:7165:5fc7:736e]/";
GlideUrl glideUrl = new GlideUrl(original);
assertThat(glideUrl.toURL().toString()).isEqualTo(original);
assertThat(glideUrl.toStringUrl()).isEqualTo(original);
}
}

0 comments on commit 8fb625f

Please sign in to comment.