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