Skip to content

Commit 8fb625f

Browse files
committed
Added test for issue 5444, IPV6 URL problem
1 parent 5bdcb9e commit 8fb625f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/test/src/test/java/com/bumptech/glide/load/model/GlideUrlTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,13 @@ public void testEquals() throws MalformedURLException {
118118
.addEqualityGroup(new GlideUrl(url, otherHeaders), new GlideUrl(new URL(url), otherHeaders))
119119
.testEquals();
120120
}
121+
122+
@Test
123+
public void issue_5444() throws MalformedURLException {
124+
String original =
125+
"http://[2600:1f13:37c:1400:ba21:7165:5fc7:736e]/";
126+
GlideUrl glideUrl = new GlideUrl(original);
127+
assertThat(glideUrl.toURL().toString()).isEqualTo(original);
128+
assertThat(glideUrl.toStringUrl()).isEqualTo(original);
129+
}
121130
}

0 commit comments

Comments
 (0)