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
commit 82f402820a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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);