mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
issue[651]: URLUtil.normalize support ipv6
This commit is contained in:
@@ -71,7 +71,7 @@ public class HttpUtilTest {
|
||||
FileUtil.writeBytes(str, "f:/test/2D.jpg");
|
||||
Console.log(str);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void get12306Test() {
|
||||
@@ -274,4 +274,10 @@ public class HttpUtilTest {
|
||||
String mimeType = HttpUtil.getMimeType("aaa.aaa");
|
||||
Assert.assertNull(mimeType);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ipv6Test() {
|
||||
String result = HttpUtil.get("http://[fe80::8f8:2022:a603:d180]:9439");
|
||||
Console.log(result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user