Skip to content

Commit e2c1e66

Browse files
committed
4.5
Fix https
1 parent 1356719 commit e2c1e66

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
setup.py
33
jconfig\__init__.py
44
jconfig\jconfig.py
5+
test\test.py
56
vk_api\__init__.py
67
vk_api\vk_api.py
78
vk_api\upload\__init__.py

vk_api/vk_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self,
5959
def vk_login(self, captcha_sid=None, captcha_key=None):
6060
u""" Авторизцаия ВКонтакте с получением cookies remixsid """
6161

62-
url = 'http://login.vk.com/'
62+
url = 'https://login.vk.com/'
6363
values = {
6464
'act': 'login',
6565
'utf8': '1',
@@ -107,7 +107,7 @@ def vk_login(self, captcha_sid=None, captcha_key=None):
107107
'to': ''
108108
}
109109

110-
response = self.http.post('http://vk.com/login.php', values)
110+
response = self.http.post('https://vk.com/login.php', values)
111111

112112
if response.text.split('<!>')[4] == '4':
113113
return
@@ -118,7 +118,7 @@ def check_sid(self):
118118
u""" Прверка Cookies remixsid на валидность """
119119

120120
if self.sid:
121-
url = 'http://vk.com/feed2.php'
121+
url = 'https://vk.com/feed2.php'
122122
self.http.cookies.update({
123123
'remixsid': self.sid,
124124
'remixlang': '0',
@@ -133,7 +133,7 @@ def check_sid(self):
133133
def api_login(self):
134134
u""" Получение токена через Desktop приложение """
135135

136-
url = 'http://oauth.vk.com/authorize'
136+
url = 'https://oauth.vk.com/authorize'
137137
values = {
138138
'client_id': self.app_id,
139139
'scope': self.scope,
@@ -184,7 +184,7 @@ def method(self, method, values=None):
184184
185185
"""
186186

187-
url = 'http://api.vk.com/method/%s' % method
187+
url = 'https://api.vk.com/method/%s' % method
188188

189189
if not values:
190190
values = {}

0 commit comments

Comments
 (0)