Get and set header fields

merge-requests/8/head
Bob Mottram 2020-09-28 13:39:40 +01:00
parent 8f8f57285f
commit 0ba1cc0ead
1 changed files with 3 additions and 2 deletions

View File

@ -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 = \