Restore headers

main
Bob Mottram 2020-09-28 14:19:52 +01:00
parent 915fc1f0ba
commit 673d7f6075
1 changed files with 5 additions and 5 deletions

View File

@ -9279,7 +9279,7 @@ class PubServer(BaseHTTPRequestHandler):
privateEvent = True
# make a copy of the headers
# currHeaders = self.headers.items()
currHeaders = self.headers.items()
# show a sending post screen
msg = \
htmlSendingPost(self.server.baseDir,
@ -9287,10 +9287,10 @@ class PubServer(BaseHTTPRequestHandler):
self._login_headers('text/html', len(msg), callingDomain)
self._write(msg)
# restore headers
# for headerField in currHeaders:
# fieldName = headerField[0]
# fieldValue = headerField[1]
# self.headers[fieldName] = fieldValue
for headerField in currHeaders:
fieldName = headerField[0]
fieldValue = headerField[1]
self.headers[fieldName] = fieldValue
if postType == 'newpost':
messageJson = \