Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/endpoints/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ def make_redirect_url(url, **kwargs):
# Parse original URL, so we can munge it with our token
origin_url = urllib.parse.unquote(url)
url_parsed = urllib.parse.urlparse(origin_url)
args = dict(urllib.parse.parse_qsl(url_parsed.query))
args = urllib.parse.parse_qsl(url_parsed.query)

# Add the token
args.update(**kwargs)
# Add any additional args
for k, v in kwargs.items():
args.append((k, v))

# Encode args and reconstruct URL
args_encoded = urllib.parse.urlencode(args, doseq=True)
Expand Down