Commit f03c0662 authored by Mika Pflüger's avatar Mika Pflüger

more explicit overriding of ports in vhost_filter, for better readability and python 3.4 compat

parent a323ccb6
......@@ -464,7 +464,9 @@ MDomain "{domain}"
if chunk['https']:
res += self.template_vhost_ssl.format(**chunk)
if chunk['port'] == 443:
res += self.template_vhost.format(**{**chunk, 'port': 80})
nchunk = chunk.copy()
nchunk.update(port=80)
res += self.template_vhost.format(**nchunk)
else:
res += self.template_vhost.format(**chunk)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment