From 76f872b4df0210ba238434bd8ab3c26e3b3c24ac Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 22 Jul 2015 07:07:50 +0200 Subject: The numver ov values of the splited string is variable (sometimes the charset encoding is present, sometimes not). --- pyaggr3g470r/views/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r/views') 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' -- cgit