aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-07-22 07:07:50 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-07-22 07:07:50 +0200
commit76f872b4df0210ba238434bd8ab3c26e3b3c24ac (patch)
tree5cf2b25c77be71cb8fdc379d47b6f5e2659591c4
parentMerged in jaesivsm/pyaggr3g470r (pull request #19) (diff)
downloadnewspipe-76f872b4df0210ba238434bd8ab3c26e3b3c24ac.tar.gz
newspipe-76f872b4df0210ba238434bd8ab3c26e3b3c24ac.tar.bz2
newspipe-76f872b4df0210ba238434bd8ab3c26e3b3c24ac.zip
The numver ov values of the splited string is variable (sometimes the charset encoding is present, sometimes not).
-rw-r--r--pyaggr3g470r/views/feed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py
index 1a3ad938..fb3ea4c7 100644
--- a/pyaggr3g470r/views/feed.py
+++ b/pyaggr3g470r/views/feed.py
@@ -208,7 +208,7 @@ def icon(feed_id):
if request.headers.get('if-none-match') == etag:
return Response(status=304, headers=headers)
if '\n' in icon:
- content_type, icon = icon.split()
+ content_type, *_, icon = icon.split()
headers['content-type'] = content_type
else:
headers['content-type'] = 'application/image'
bgstack15