From e048f61c7334ecc82d151d8885078dd77a270760 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 10 Sep 2019 16:42:09 +0100 Subject: [PATCH] .strip() client cert to remove needless newlines --- modules/fediverse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fediverse.py b/modules/fediverse.py index 8915639f..69793b58 100644 --- a/modules/fediverse.py +++ b/modules/fediverse.py @@ -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\"")