Setting headers

main
Bob Mottram 2020-09-28 13:46:43 +01:00
parent 9534197005
commit 77ff39aa06
1 changed files with 4 additions and 1 deletions

View File

@ -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':