diff options
author | Joe Gregorio <jcgregorio@google.com> | 2012-07-28 23:59:37 -0400 |
---|---|---|
committer | Joe Gregorio <jcgregorio@google.com> | 2012-07-28 23:59:37 -0400 |
commit | de10acac69daee57bb9dca25bf96f3f368fb411a (patch) | |
tree | 211f1db0a9c327c3eb3a336a52f6f0351e528bbb | |
parent | b30ed37f0c2209a7f2397c8e7b8d4d252fa16262 (diff) | |
download | httplib2-de10acac69daee57bb9dca25bf96f3f368fb411a.tar.gz |
Keys are lowercase in a Response object, regardless of how Response object is constructed.
-rw-r--r-- | python2/httplib2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 597df48..43a5564 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -1654,11 +1654,11 @@ class Response(dict): self.version = info.version elif isinstance(info, email.Message.Message): for key, value in info.items(): - self[key] = value + self[key.lower()] = value self.status = int(self['status']) else: for key, value in info.iteritems(): - self[key] = value + self[key.lower()] = value self.status = int(self.get('status', self.status)) self.reason = self.get('reason', self.reason) |