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 8dafe44 commit 089adffCopy full SHA for 089adff
mauth_client/middlewares/wsgi.py
@@ -98,11 +98,7 @@ def _extract_url(self, environ):
98
url_parts.append(environ["SERVER_NAME"])
99
port = environ["SERVER_PORT"]
100
101
- if (
102
- (scheme == "https" and port != 443)
103
- or
104
- (scheme != "https" and port != 80)
105
- ):
+ if (scheme == "https" and port != 443) or (scheme != "https" and port != 80):
106
url_parts.append(f":{port}")
107
108
url_parts.append(quote(environ.get("SCRIPT_NAME", "")))
0 commit comments