From 77ff39aa06215ef9a734b8cc401219d4bc75e28d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 28 Sep 2020 13:46:43 +0100 Subject: [PATCH] Setting headers --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index e73d187a2..549121e67 100644 --- a/daemon.py +++ b/daemon.py @@ -9268,7 +9268,10 @@ class PubServer(BaseHTTPRequestHandler): self.server.translate).encode('utf-8') self._login_headers('text/html', len(msg), callingDomain) self._write(msg) - for fieldName, fieldValue in currHeaders.items(): + for headerField in currHeaders: + print(str(headerField)) + fieldName = headerField[0] + fieldValue = headerField[1] self.headers[fieldName] = fieldValue if postType == 'newpost':