mirror of https://gitlab.com/bashrc2/epicyon
Check that cookie exists before removing it from headers
parent
09ea5a13e6
commit
ce9bdf3c9f
|
@ -19401,7 +19401,10 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
# make a copy of self.headers
|
||||
headers = copy.deepcopy(self.headers)
|
||||
headers_without_cookie = copy.deepcopy(headers)
|
||||
del headers_without_cookie['cookie']
|
||||
if 'cookie' in headers_without_cookie:
|
||||
del headers_without_cookie['cookie']
|
||||
if 'Cookie' in headers_without_cookie:
|
||||
del headers_without_cookie['Cookie']
|
||||
print('New post headers: ' + str(headers_without_cookie))
|
||||
|
||||
length = int(headers['Content-Length'])
|
||||
|
|
Loading…
Reference in New Issue