1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00

fix android 6 cookie problem

This commit is contained in:
Austin Huang 2020-08-25 12:15:12 -04:00
parent c7ba45c70e
commit 86a90aff5c
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -145,7 +145,7 @@ public final class Utils {
for (final String cookie : cookieRaw.split("; ")) {
final String[] strings = cookie.split("=", 2);
final HttpCookie httpCookie = new HttpCookie(strings[0].trim(), strings[1].trim());
httpCookie.setDomain("instagram.com");
httpCookie.setDomain(".instagram.com");
httpCookie.setPath("/");
httpCookie.setVersion(0);
cookieStore.add(uri1, httpCookie);