From 15a43eed2ad541d302786781c265704bd22aea05 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 14 Aug 2019 23:33:55 +0100 Subject: [PATCH] Debugging unknown posts --- daemon.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon.py b/daemon.py index f2235dd3..f002ca28 100644 --- a/daemon.py +++ b/daemon.py @@ -2583,6 +2583,12 @@ class PubServer(BaseHTTPRequestHandler): # refuse to receive non-json content if self.headers['Content-type'] != 'application/json': print("POST is not json: "+self.headers['Content-type']) + if self.server.debug: + print(str(self.headers)) + length = int(self.headers['Content-length']) + if length