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