From 600ef3eaced8074374a3826214e84bf9b65ee957 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 16 Aug 2011 06:22:04 +0000 Subject: [PATCH] minor patch --- doc/THANKS | 3 +++ lib/request/basic.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/THANKS b/doc/THANKS index ae112f2a3..869f30511 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -553,6 +553,9 @@ Zhen Zhou abc abc for reporting a minor bug +Alex m3zero@gmail.com + for reporting a minor bug + anonymous anonymous for reporting a couple of bugs diff --git a/lib/request/basic.py b/lib/request/basic.py index 3669a8c19..6823a0499 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -135,7 +135,7 @@ def checkCharEncoding(encoding): # http://philip.html5.org/data/charsets-2.html if encoding in translate: encoding = translate[encoding] - elif encoding == 'null': + elif encoding in ('null', '{charset}'): return None # http://www.iana.org/assignments/character-sets