Merge pull request #6489 from cz111000/patch-1

Update ProxyAcceptCookiePolicy.java
This commit is contained in:
Loredana Crusoveanu
2019-04-21 11:22:26 +03:00
committed by GitHub

View File

@@ -17,8 +17,8 @@ public class ProxyAcceptCookiePolicy implements CookiePolicy {
host = uri.getHost();
}
if (!HttpCookie.domainMatches(acceptedProxy, host)) {
return false;
if (HttpCookie.domainMatches(acceptedProxy, host)) {
return true;
}
return CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(uri, cookie);