This commit is contained in:
Looly
2022-09-15 11:20:54 +08:00
parent 3b5ba16c93
commit 08a829cf6d
10 changed files with 127 additions and 45 deletions

View File

@@ -219,7 +219,7 @@ public class HttpServerRequest extends HttpServerBase {
*/
public Map<String, HttpCookie> getCookieMap() {
if (null == this.cookieCache) {
cookieCache = MapUtil.unmodifiable(MapUtil.putAll(
cookieCache = MapUtil.view(MapUtil.putAll(
new CaseInsensitiveMap<>(),
NetUtil.parseCookies(getCookiesStr()),
HttpCookie::getName));