.strip() client cert to remove needless newlines

This commit is contained in:
jesopo 2019-09-10 16:42:09 +01:00
parent d75d33c42c
commit e048f61c73

View file

@ -182,7 +182,7 @@ class Module(ModuleManager.BaseModule):
cert_filename = self.bot.config["tls-certificate"]
with open(cert_filename) as cert_file:
cert = cert_file.read()
cert = cert_file.read().strip()
event["response"].content_type = ("application/ld+json; "
"profile=\"https://www.w3.org/ns/activitystreams\"")