server/virtualenv/web/res/patch/oauth2.diff
author durandn
Fri, 18 Sep 2015 17:21:49 +0200
changeset 156 8c8fd6a5bba9
parent 3 fc0f3e398166
permissions -rw-r--r--
fixed playing video on segment click, was deleted by mistake
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
@@ -385,386 +385,391 @@
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
        url_items = self._split_url_string(query).items()
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
        non_oauth_url_items = list([(k, v) for k, v in url_items  if not k.startswith('oauth_')])
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
        
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
-       items.extend(non_oauth_url_items)
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
+       for (key,value) in non_oauth_url_items:
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
+           if (key,value) not in items:
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
+               items.append((key,value))
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        encoded_str = urllib.urlencode(sorted(items))