Skip to content

Commit 1214c61

Browse files
author
Inbal Tako
committed
Remove pii data from headers
1 parent cfa716a commit 1214c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

securenative/utils/request_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_valid_ip(ips):
8282
def get_headers_from_request(headers):
8383
h = {}
8484
for header in headers:
85-
if header not in RequestUtils.PII_HEADERS:
85+
if header not in RequestUtils.PII_HEADERS and header.upper() not in RequestUtils.PII_HEADERS:
8686
h[header] = headers[header]
8787

8888
return h

0 commit comments

Comments
 (0)