Skip to content

Commit

Permalink
Remove brotli compression from accepted encodings for indeed sessions
Browse files Browse the repository at this point in the history
Resolves an issue where indeed responses are not being decoded correctly.
Might resolve issue #137
  • Loading branch information
marchbnr committed Mar 25, 2021
1 parent e1f1dfa commit 2128be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobfunnel/backend/scrapers/indeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def headers(self) -> Dict[str, str]:
return {
'accept': 'text/html,application/xhtml+xml,application/xml;'
'q=0.9,image/webp,*/*;q=0.8',
'accept-encoding': 'gzip, deflate, sdch, br',
'accept-encoding': 'gzip, deflate, sdch',
'accept-language': 'en-GB,en-US;q=0.8,en;q=0.6',
'referer':
f'https://www.indeed.{self.config.search_config.domain}/',
Expand Down

0 comments on commit 2128be1

Please sign in to comment.