mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix bug
This commit is contained in:
parent
db504e2dec
commit
283f7b32ab
@ -3,10 +3,11 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.7.14 (2021-09-17)
|
||||
# 5.7.14 (2021-09-22)
|
||||
|
||||
### 🐣新特性
|
||||
### 🐞Bug修复
|
||||
* 【http 】 修复HttpCookie设置cookies的方法,不符合RFC6265规范问题(pr#418@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -427,6 +427,8 @@ public class HttpRequest extends HttpBase<HttpRequest> {
|
||||
if (ArrayUtil.isEmpty(cookies)) {
|
||||
return disableCookie();
|
||||
}
|
||||
// 名称/值对之间用分号和空格 ('; ')
|
||||
// https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Cookie
|
||||
return cookie(ArrayUtil.join(cookies, "; "));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user