From 85da93f82fad5020bb9d358c6f9118876926dcc1 Mon Sep 17 00:00:00 2001 From: shuzijun Date: Thu, 4 May 2023 17:52:26 +0800 Subject: [PATCH] fix cookie --- .../com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java b/src/main/java/com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java index e34b6d9..6405235 100644 --- a/src/main/java/com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java +++ b/src/main/java/com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java @@ -113,6 +113,7 @@ public static void setCookie(List cookieList) { cookieManager.getCookieStore().removeAll(); for (HttpCookie cookie : cookieList) { + cookie.setVersion(0); cookieManager.getCookieStore().add(null, cookie); } }