Skip to content

Commit 58c2259

Browse files
committed
dave:Add Headers for POST
1 parent 80a53e3 commit 58c2259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sreg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def check(plugin, passport, passport_type):
5959
if v == "":
6060
post_data[k] = passport
6161
try:
62-
content = requests.post(url, data=post_data, timeout=8).content
62+
content = requests.post(url, data=post_data, headers=headers, timeout=8).content
6363
content = unicode(content, "utf-8")
6464
except Exception, e:
6565
print e, app_name

0 commit comments

Comments
 (0)