mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import cn.hutool.http.html.HtmlUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@@ -115,9 +115,11 @@ public class HttpRequestTest {
|
||||
@Test
|
||||
@Ignore
|
||||
public void getDeflateTest() {
|
||||
final String res = HttpRequest.get("https://comment.bilibili.com/67573272.xml")
|
||||
.execute().body();
|
||||
Console.log(res);
|
||||
final HttpResponse res = HttpRequest.get("https://comment.bilibili.com/67573272.xml")
|
||||
.header(Header.ACCEPT_ENCODING, "deflate")
|
||||
.execute();
|
||||
Console.log(res.header(Header.CONTENT_ENCODING));
|
||||
Console.log(res.body());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user