File tree 1 file changed +4
-3
lines changed
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():
1022
1022
request_url = urllib .parse .urlparse (request .url )
1023
1023
redirect_url = request_url
1024
1024
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.
1027
1028
request_url = redirect_url ._replace (
1028
1029
scheme = "https"
1029
1030
)
@@ -1049,7 +1050,7 @@ def redirect_to_canonical_host():
1049
1050
redirect_url = redirect_url ._replace (path = "/" )
1050
1051
1051
1052
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
1053
1054
redirect (urllib .parse .urlunparse (redirect_url ), 301 )
1054
1055
1055
1056
You can’t perform that action at this time.
0 commit comments