]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rsimple.py
There could be more than one semicolon in Content-Type header.
[bookmarks_db.git] / Robots / bkmk_rsimple.py
index 32083ee95b254e264f367b5becb18a8f26d91d78..ebb3f8b2b895f26576174f10c16115d10cabb72d 100644 (file)
@@ -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)