mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
favicon fetcher: provide an Accept header on requests.
This makes the fetcher work with the default ModSecurity ruleset, and would also avoid providing unsupported favicon formats (e.g. webp), by explictly preferring PNG and x-icon formats.
This commit is contained in:
parent
bf63deec54
commit
4ff8ed7798
1 changed files with 1 additions and 0 deletions
|
@ -269,6 +269,7 @@ class IconImporter(object):
|
|||
self.feed.permalink
|
||||
),
|
||||
'Connection': 'close',
|
||||
'Accept': 'image/png,image/x-icon,image/*;q=0.9,*/*;q=0.8'
|
||||
}
|
||||
try:
|
||||
request = urllib2.Request(url, headers=headers)
|
||||
|
|
Loading…
Add table
Reference in a new issue