修复HttpRequest.header相同key被覆盖问题

This commit is contained in:
Looly
2024-04-20 15:29:29 +08:00
parent cab1cade77
commit 7a5f910aa7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.28(2024-04-18)
# 5.8.28(2024-04-20)
### 🐣新特性
* 【core 】 修正XmlUtil的omitXmlDeclaration描述注释(issue#I9CPC7@Gitee)
@@ -19,6 +19,7 @@
* 【db 】 解决oracle情况下setObject(inputStream)报错问题,java.sql.SQLException: 无效的列类型问题(pr#1207@Gitee)
* 【core 】 解决CalendarUtil.isSameDay时区不同导致结果错误问题(pr#3548@Github)
* 【core 】 修复RandomUtil.randomStringWithoutStr方法问题(pr#1209@Gitee)
* 【http 】 修复HttpRequest.header相同key被覆盖问题(issue#I9I61C@Gitee)
-------------------------------------------------------------------------------------------------------------
# 5.8.27(2024-03-29)
@@ -1227,7 +1227,7 @@ public class HttpRequest extends HttpBase<HttpRequest> {
// 流方式上传数据
.setChunkedStreamingMode(config.blockSize)
// 覆盖默认Header
.header(this.headers, true);
.header(this.headers, false);
if (null != this.cookie) {
// 当用户自定义Cookie时,全局Cookie自动失效