Don't show cookie

main
Bob Mottram 2020-02-19 15:34:31 +00:00
parent edc34a8a9a
commit 3af8d99ca5
1 changed files with 4 additions and 1 deletions

View File

@ -3790,9 +3790,12 @@ class PubServer(BaseHTTPRequestHandler):
# make a copy of self.headers
headers={}
headersWithoutCookie={}
for dictEntryName,headerLine in self.headers.items():
headers[dictEntryName]=headerLine
print('New post headers: '+str(headers))
if dictEntryName.lower()!='cookie':
headersWithoutCookie[dictEntryName]=headerLine
print('New post headers: '+str(headersWithoutCookie))
length = int(headers['Content-Length'])
if length>self.server.maxPostLength: