diff --git a/hutool-db/pom.xml b/hutool-db/pom.xml
index 8581b92b8..1be3aff0c 100644
--- a/hutool-db/pom.xml
+++ b/hutool-db/pom.xml
@@ -167,7 +167,7 @@
com.h2database
h2
- 2.0.204
+ 2.0.206
test
diff --git a/hutool-http/src/test/java/cn/hutool/http/UploadTest.java b/hutool-http/src/test/java/cn/hutool/http/UploadTest.java
index aa753956d..6d863cdf0 100644
--- a/hutool-http/src/test/java/cn/hutool/http/UploadTest.java
+++ b/hutool-http/src/test/java/cn/hutool/http/UploadTest.java
@@ -68,4 +68,20 @@ public class UploadTest {
HttpResponse httpResponse = httpRequest.execute();
Console.log(httpResponse);
}
+
+ @Test
+ @Ignore
+ public void smmsTest(){
+ // https://github.com/dromara/hutool/issues/2079
+ // hutool的user agent 被封了
+ String token = "test";
+ String url = "https://sm.ms/api/v2/upload";
+ String result = HttpUtil.createPost(url)
+ .header(Header.USER_AGENT, "PostmanRuntime/7.28.4")
+ .auth(token)
+ .form("smfile", FileUtil.file("d:/test/qrcodeCustom.png"))
+ .execute().body();
+
+ Console.log(result);
+ }
}