From 3af8d99ca52f235c31693e097c88801ebad6d99e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Feb 2020 15:34:31 +0000 Subject: [PATCH] Don't show cookie --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index e5933e3a8..06096e8f8 100644 --- a/daemon.py +++ b/daemon.py @@ -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: