r-strips the configured URL unconditionally

This commit is contained in:
Samuel FORESTIER 2019-10-05 10:41:09 +02:00 committed by Andrey Arapov
parent cd49dce78f
commit 06c3d6ac11
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

View File

@ -79,7 +79,6 @@ class SMTP(object):
self.public_endpoint = isso.conf.get("server", "public-endpoint")
# rstrips potential trailing '/', without having to `repr` the `local` object.
if self.public_endpoint:
if self.public_endpoint.endswith('/'):
self.public_endpoint = self.public_endpoint.rstrip('/')
else:
self.public_endpoint = local("host")