We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1275e27 commit 8188458Copy full SHA for 8188458
app.py
@@ -221,8 +221,8 @@ def get_redirect_uri(request):
221
"""Returns OAuth redirect URI."""
222
parsed_url = urlparse(request.url)
223
if parsed_url.hostname == 'localhost':
224
- return str.format('http://{0}:{1}/submit', parsed_url.hostname, parsed_url.port)
225
- return str.format('https://{0}/submit', parsed_url.hostname)
+ return 'http://{hostname}:{port}/submit'.format(hostname=parsed_url.hostname, port=parsed_url.port)
+ return 'https://{hostname}/submit'.format(hostname=parsed_url.hostname)
226
227
if __name__ == '__main__':
228
app.run(port=7000)
0 commit comments