File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1022,8 +1022,9 @@ def redirect_to_canonical_host():
10221022 request_url = urllib .parse .urlparse (request .url )
10231023 redirect_url = request_url
10241024
1025- # Assume that we're always deployed behind something that hides https:// from us.
1026- # In production TLS is terminated at ELB, so the actual bors app sees only http:// requests.
1025+ # Assume that we're always deployed behind something that hides https://
1026+ # from us. In production TLS is terminated at ELB, so the actual bors app
1027+ # sees only http:// requests.
10271028 request_url = redirect_url ._replace (
10281029 scheme = "https"
10291030 )
@@ -1049,7 +1050,7 @@ def redirect_to_canonical_host():
10491050 redirect_url = redirect_url ._replace (path = "/" )
10501051
10511052 if request_url != redirect_url :
1052- print ("redirecting original=" + request_url + " to new=" + redirect_url )
1053+ print ("redirecting original=" + request_url + " to new=" + redirect_url ) # noqa
10531054 redirect (urllib .parse .urlunparse (redirect_url ), 301 )
10541055
10551056
You can’t perform that action at this time.
0 commit comments