|
58 | 58 | import org.apache.commons.logging.LogFactory; |
59 | 59 | import org.apache.http.NoHttpResponseException; |
60 | 60 | import org.apache.http.client.CredentialsProvider; |
61 | | -import org.apache.http.cookie.MalformedCookieException; |
62 | 61 | import org.htmlunit.attachment.Attachment; |
63 | 62 | import org.htmlunit.attachment.AttachmentHandler; |
64 | 63 | import org.htmlunit.csp.Policy; |
|
77 | 76 | import org.htmlunit.html.XHtmlPage; |
78 | 77 | import org.htmlunit.html.parser.HTMLParser; |
79 | 78 | import org.htmlunit.html.parser.HTMLParserListener; |
| 79 | +import org.htmlunit.http.CookieParser; |
80 | 80 | import org.htmlunit.http.HttpStatus; |
81 | 81 | import org.htmlunit.http.HttpUtils; |
| 82 | +import org.htmlunit.http.MalformedCookieException; |
82 | 83 | import org.htmlunit.httpclient.HttpClientConverter; |
83 | 84 | import org.htmlunit.javascript.AbstractJavaScriptEngine; |
84 | 85 | import org.htmlunit.javascript.DefaultJavaScriptErrorListener; |
@@ -2933,7 +2934,8 @@ public void addCookie(final String cookieString, final URL pageUrl, final Object |
2933 | 2934 | } |
2934 | 2935 |
|
2935 | 2936 | try { |
2936 | | - final List<Cookie> cookies = HttpClientConverter.parseCookie(cookieString, pageUrl, getBrowserVersion()); |
| 2937 | + // final List<Cookie> cookies = HttpClientConverter.parseCookie(cookieString, pageUrl, getBrowserVersion()); |
| 2938 | + final List<Cookie> cookies = CookieParser.parseCookie(cookieString, pageUrl, getBrowserVersion()); |
2937 | 2939 |
|
2938 | 2940 | for (final Cookie cookie : cookies) { |
2939 | 2941 | cookieManager.addCookie(cookie); |
|
0 commit comments