diff --git a/lib/request/basic.py b/lib/request/basic.py index c79ae66e3..5f7e12668 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -92,6 +92,8 @@ def checkCharEncoding(encoding): encoding = 'cp%s' % encoding[3:] elif encoding.startswith('windows') and not encoding.startswith('windows-'): encoding = 'windows-%s' % encoding[7:] + elif encoding == 'null': + return None try: codecs.lookup(encoding)