From f59b59a876c47a1874229252599d636184ae0aed Mon Sep 17 00:00:00 2001 From: Pieter Smit Date: Sat, 11 Nov 2023 18:05:24 +0200 Subject: [PATCH] Fix the content type of the error webhook --- canarytokens/loghandlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canarytokens/loghandlers.py b/canarytokens/loghandlers.py index 00dd338d7..5844c5922 100644 --- a/canarytokens/loghandlers.py +++ b/canarytokens/loghandlers.py @@ -77,7 +77,7 @@ def __call__(self, event): # pragma: no cover def httpRequest(postdata): # pragma: no cover agent = Agent(reactor) - headers = {b"Content-Type": [b"application/x-www-form-urlencoded"]} + headers = {b"Content-Type": [b"application/json"]} data_str = json.dumps(postdata) body = BytesProducer(data_str.encode()) url = os.getenv("ERROR_LOG_WEBHOOK").encode()