From: Oleg Broytman Date: Tue, 4 Mar 2008 10:40:14 +0000 (+0000) Subject: There could be more than one semicolon in Content-Type header. X-Git-Tag: v4.5.3~179 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=06769d72bf3bd88ec73f373cd0246c2825f6d4e7;p=bookmarks_db.git There could be more than one semicolon in Content-Type header. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@197 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 32083ee..ebb3f8b 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -157,7 +157,7 @@ class robot_simple(Robot): try: content_type = headers["Content-Type"] try: - content_type, charset = content_type.split(';') + content_type, charset = content_type.split(';', 1) content_type = content_type.strip() charset = charset.split('=')[1].strip() self.log(" HTTP charset : %s" % charset)