chg: [tools:misp-workflows/webhook_listener] Print headers on stdout

feature/workflow-module/publish-event
Sami Mokaddem 2023-10-09 14:25:10 +02:00
parent 54ec65acb2
commit a1005dc551
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class MyServer(BaseHTTPRequestHandler):
self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers()
pprint(dict(self.headers))
self.data_string = self.rfile.read(int(self.headers['Content-Length']))
self.data_string = self.data_string.decode('utf8')
try: