Added Josselin Jacquard to AUTHORS
authorKenneth Reitz <me@kennethreitz.com>
Wed, 31 Aug 2011 03:58:31 +0000 (23:58 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 31 Aug 2011 03:58:31 +0000 (23:58 -0400)
AUTHORS
requests/utils.py

diff --git a/AUTHORS b/AUTHORS
index 1eabf65..8497a09 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -42,3 +42,4 @@ Patches and Suggestions
 - Alejandro Giacometti
 - Rick Mak
 - Johan Bergström
+- Josselin Jacquard
index d21966c..27423ee 100644 (file)
@@ -150,8 +150,10 @@ def get_encoding_from_headers(headers):
     """
 
     content_type = headers.get('content-type')
-    if not content_type :
-        return
+
+    if not content_type:
+        return None
+
     content_type, params = cgi.parse_header(content_type)
 
     if 'charset' in params: