Skip to content

Commit 85da93f

Browse files
committed
fix cookie
1 parent c9c53a4 commit 85da93f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/shuzijun/leetcode/plugin/utils/HttpRequestUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public static void setCookie(List<HttpCookie> cookieList) {
113113

114114
cookieManager.getCookieStore().removeAll();
115115
for (HttpCookie cookie : cookieList) {
116+
cookie.setVersion(0);
116117
cookieManager.getCookieStore().add(null, cookie);
117118
}
118119
}

0 commit comments

Comments
 (0)