Skip to content

Commit

Permalink
Merge branch 'master' into production
Browse files Browse the repository at this point in the history
v-2019-07-31.2
  • Loading branch information
paramsingh committed Jul 31, 2019
2 parents 4cd3410 + a489128 commit 2627928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def prod_https_login_redirect():
and app.config['TESTING'] == False \
and request.blueprint not in ('api', 'api_v1_core', 'api_v1_datasets', 'api_v1_dataset_eval'):
url = request.url[7:] # remove http:// from url
return redirect('https://{}'.format(url))
return redirect('https://{}'.format(url), 301)


@app.before_request
Expand Down

0 comments on commit 2627928

Please sign in to comment.