Skip to content

Commit 2bc9704

Browse files
codereptilepython273
authored andcommitted
Added 'domain='.vk.ru'' in Vkapi._sid function to resolve 'multiple cookies with the same name' conflict (cookies are the same for .vk.com and .vk.ru)
1 parent 1ef8259 commit 2bc9704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vk_api/vk_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ def __init__(self, login=None, password=None, token=None,
135135
@property
136136
def _sid(self):
137137
return (
138-
self.http.cookies.get('remixsid') or
139-
self.http.cookies.get('remixsid6')
138+
self.http.cookies.get('remixsid', domain='.vk.ru') or
139+
self.http.cookies.get('remixsid6', domain='.vk.ru')
140140
)
141141

142142
def auth(self, reauth=False, token_only=False):

0 commit comments

Comments
 (0)