Skip to content

Commit b6cd130

Browse files
authored
Merge pull request #22 from haohongwei/main
change encode type of cookie
2 parents 301a3ee + 8ea31eb commit b6cd130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_comment_plus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def main(opts=None):
674674
ck = cfg['user']['cookie']
675675

676676
headers = {
677-
'cookie': ck,
677+
'cookie': ck.encode("utf-8"),
678678
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36',
679679
'Connection': 'keep-alive',
680680
'Cache-Control': 'max-age=0',

0 commit comments

Comments
 (0)