From e5863d8b897816afe5cfb1bfc3f7391479b08cc5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 12 Aug 2015 21:40:51 +0200 Subject: [PATCH] Minor patch --- lib/request/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/basic.py b/lib/request/basic.py index 41829c0ce..1c88d327d 100755 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -191,7 +191,7 @@ def checkCharEncoding(encoding, warn=True): # Reference: http://philip.html5.org/data/charsets-2.html if encoding in translate: encoding = translate[encoding] - elif encoding in ("null", "{charset}", "*"): + elif encoding in ("null", "{charset}", "*") or not re.search(r"\w", encoding): return None # Reference: http://www.iana.org/assignments/character-sets