Skip to content

Commit

Permalink
Fix the content type of the error webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-pieter committed Nov 11, 2023
1 parent beb179d commit f59b59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canarytokens/loghandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f59b59a

Please sign in to comment.