Skip to content

Commit

Permalink
- use more concise expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Sep 2, 2019
1 parent 0c574fb commit 94beaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/SiteAccess/VirtualHostMonster.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __call__(self, client, request, response=None):
protocol = stack.pop()
host = stack.pop()
hostname, port = splitport(host)
port = (port and int(port)) or None
port = int(port) if port else None
request.setServerURL(protocol, hostname, port)
path = list(stack)

Expand Down

0 comments on commit 94beaea

Please sign in to comment.