virtualenv/web/res/patch/oauth2.diff
author cavaliet
Thu, 03 Apr 2014 16:00:08 +0200
changeset 170 2c7aef21c67c
parent 0 87104b7cb3d6
permissions -rw-r--r--
Added tag V02.11.22 for changeset 01f7cfd23d0b

diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py
@@ -385,386 +385,391 @@
        url_items = self._split_url_string(query).items()
        non_oauth_url_items = list([(k, v) for k, v in url_items  if not k.startswith('oauth_')])
        
-       items.extend(non_oauth_url_items)
+       for (key,value) in non_oauth_url_items:
+           if (key,value) not in items:
+               items.append((key,value))
    
        encoded_str = urllib.urlencode(sorted(items))