From 0ba1cc0ead480cff81183b131606b1cc337f7517 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 28 Sep 2020 13:39:40 +0100 Subject: [PATCH] Get and set header fields --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index e41905e15..28573c87b 100644 --- a/daemon.py +++ b/daemon.py @@ -9261,13 +9261,14 @@ class PubServer(BaseHTTPRequestHandler): privateEvent = True # show a sending post screen - currHeaders = self.headers.copy() + currHeaders = self.headers.items() msg = \ htmlSendingPost(self.server.baseDir, self.server.translate).encode('utf-8') self._login_headers('text/html', len(msg), callingDomain) self._write(msg) - self.headers = currHeaders.copy() + for fieldName, fieldValue in currHeaders.items(): + self.headers[fieldName] = fieldValue if postType == 'newpost': messageJson = \