Skip to content

Commit 7333a61

Browse files
committed
Merge pull request android-async-http#175 from rishabhmhjn/master
Support same cookie-name for multiple domain!
2 parents 874c175 + 31894cc commit 7333a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/loopj/android/http/PersistentCookieStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public PersistentCookieStore(Context context) {
8080

8181
@Override
8282
public void addCookie(Cookie cookie) {
83-
String name = cookie.getName();
83+
String name = cookie.getName() + cookie.getDomain();
8484

8585
// Save cookie into local store, or remove if expired
8686
if(!cookie.isExpired(new Date())) {

0 commit comments

Comments
 (0)