Skip to content

Commit

Permalink
Remove Brotli header
Browse files Browse the repository at this point in the history
Module requests does not decompress Brotli automatically. It will prevent the download all album function from running.
  • Loading branch information
mason1900 committed Jul 4, 2019
1 parent 54eb182 commit a2cc226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion douban/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def albums(self):
def __album(self, start):
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4',
'Connection': 'keep-alive',
'DNT': '1',
Expand Down

0 comments on commit a2cc226

Please sign in to comment.