Skip to content

Commit 089adff

Browse files
flake
1 parent 8dafe44 commit 089adff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mauth_client/middlewares/wsgi.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ def _extract_url(self, environ):
9898
url_parts.append(environ["SERVER_NAME"])
9999
port = environ["SERVER_PORT"]
100100

101-
if (
102-
(scheme == "https" and port != 443)
103-
or
104-
(scheme != "https" and port != 80)
105-
):
101+
if (scheme == "https" and port != 443) or (scheme != "https" and port != 80):
106102
url_parts.append(f":{port}")
107103

108104
url_parts.append(quote(environ.get("SCRIPT_NAME", "")))

0 commit comments

Comments
 (0)