From 176df9da55495c4690415084f963a93f15b6e533 Mon Sep 17 00:00:00 2001 From: gudaoxuri Date: Fri, 12 Apr 2024 17:59:33 +0800 Subject: [PATCH] Support InputStream type upload. --- .vscode/settings.json | 3 +-- README.adoc | 2 +- pom.xml | 4 ++-- src/main/java/com/ecfront/dew/common/HttpHelper.java | 7 +++++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f1e480..c995aa5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,3 @@ { - "java.debug.settings.onBuildFailureProceed": true, - "java.configuration.updateBuildConfiguration": "interactive" + "java.debug.settings.onBuildFailureProceed": true } \ No newline at end of file diff --git a/README.adoc b/README.adoc index 459ab35..509dea5 100644 --- a/README.adoc +++ b/README.adoc @@ -35,7 +35,7 @@ NOTE: 文档地址: http://gudaoxuri.github.io/dew-common/[http://gudaoxuri.gi com.ecfront.dew common - 4.0.0-rc.1 + 4.0.0-rc.2 ---- diff --git a/pom.xml b/pom.xml index 191eb87..865ad9b 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ Dew公共模块 https://github.com/gudaoxuri/dew-common jar - 4.0.0-rc.1 + 4.0.0-rc.2 21 @@ -36,7 +36,7 @@ ${java.version} ${java.version} ${java.version} - 2.15.3 + 2.17.0 1.9.4 0.4 2.0.9 diff --git a/src/main/java/com/ecfront/dew/common/HttpHelper.java b/src/main/java/com/ecfront/dew/common/HttpHelper.java index 37a206b..72300e5 100644 --- a/src/main/java/com/ecfront/dew/common/HttpHelper.java +++ b/src/main/java/com/ecfront/dew/common/HttpHelper.java @@ -872,8 +872,7 @@ public ResponseWrap request(String method, String url, Object body, Map (InputStream) body), + ((InputStream) body).available()); } else { entity = HttpRequest.BodyPublishers.ofString($.json.toJsonString(body), Charset.forName(requestCharset)); }