From d675b7376de9764812b94cb8a64ced3b000a5964 Mon Sep 17 00:00:00 2001 From: Looly Date: Mon, 30 Sep 2019 16:37:41 +0800 Subject: [PATCH] add toURI encode option --- .../cn/hutool/http/cookie/GlobalCookieManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hutool-http/src/main/java/cn/hutool/http/cookie/GlobalCookieManager.java b/hutool-http/src/main/java/cn/hutool/http/cookie/GlobalCookieManager.java index 1acf5b182..a432452ce 100644 --- a/hutool-http/src/main/java/cn/hutool/http/cookie/GlobalCookieManager.java +++ b/hutool-http/src/main/java/cn/hutool/http/cookie/GlobalCookieManager.java @@ -1,5 +1,9 @@ package cn.hutool.http.cookie; +import cn.hutool.core.io.IORuntimeException; +import cn.hutool.core.util.URLUtil; +import cn.hutool.http.HttpConnection; + import java.io.IOException; import java.net.CookieManager; import java.net.CookiePolicy; @@ -7,11 +11,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import cn.hutool.core.io.IORuntimeException; -import cn.hutool.core.lang.Console; -import cn.hutool.core.util.URLUtil; -import cn.hutool.http.HttpConnection; - /** * 全局Cooki管理器,只针对Hutool请求有效 * @@ -57,7 +56,6 @@ public class GlobalCookieManager { Map> cookieHeader; try { - Console.log(URLUtil.toURI(conn.getUrl(), false)); cookieHeader = cookieManager.get(URLUtil.toURI(conn.getUrl()), new HashMap>(0)); } catch (IOException e) { throw new IORuntimeException(e);