From 10308ccdf1d6fc92cfed8a3b25779e7cbb73f9b0 Mon Sep 17 00:00:00 2001 From: Kevin Vance Date: Thu, 23 Feb 2017 15:26:36 -0500 Subject: Update proxy keys on CaseInsensitiveDict.update() --- oauthlib/common.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'oauthlib/common.py') diff --git a/oauthlib/common.py b/oauthlib/common.py index 5d999b2..705cbd2 100644 --- a/oauthlib/common.py +++ b/oauthlib/common.py @@ -354,6 +354,11 @@ class CaseInsensitiveDict(dict): super(CaseInsensitiveDict, self).__setitem__(k, v) self.proxy[k.lower()] = k + def update(self, *args, **kwargs): + super(CaseInsensitiveDict, self).update(*args, **kwargs) + for k in dict(*args, **kwargs): + self.proxy[k.lower()] = k + class Request(object): -- cgit v1.2.1