mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add toURI encode option
This commit is contained in:
@@ -8,6 +8,7 @@ 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;
|
||||
|
||||
@@ -56,6 +57,7 @@ public class GlobalCookieManager {
|
||||
|
||||
Map<String, List<String>> cookieHeader;
|
||||
try {
|
||||
Console.log(URLUtil.toURI(conn.getUrl(), false));
|
||||
cookieHeader = cookieManager.get(URLUtil.toURI(conn.getUrl()), new HashMap<String, List<String>>(0));
|
||||
} catch (IOException e) {
|
||||
throw new IORuntimeException(e);
|
||||
|
Reference in New Issue
Block a user