Skip to content

Commit 0313808

Browse files
authored
Merge pull request #47 from securenative/dev
Code cleanups
2 parents 5b190a0 + a9b1c9e commit 0313808

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.6
1+
0.3.7

securenative/utils/request_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ def get_headers_from_request(headers, options=None):
8585
h = {}
8686
if options and options.pii_headers and len(options.pii_headers) > 0:
8787
for header in headers:
88-
if header not in options.pii_headers and header.upper() not in options.pii_headers:
88+
if header.lower() not in options.pii_headers and header.upper() not in options.pii_headers:
8989
h[header] = headers[header]
9090
elif options and options.pii_regex_pattern:
9191
for header in headers:
9292
if not re.search(options.pii_regex_pattern, header):
9393
h[header] = headers[header]
9494
else:
9595
for header in headers:
96-
if header not in RequestUtils.PII_HEADERS and header.upper() not in RequestUtils.PII_HEADERS:
96+
if header.lower() not in RequestUtils.PII_HEADERS and header.upper() not in RequestUtils.PII_HEADERS:
9797
h[header] = headers[header]
9898

9999
return h

securenative/utils/version_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ class VersionUtils(object):
22

33
@staticmethod
44
def get_version():
5-
return "0.3.6"
5+
return "0.3.7"

0 commit comments

Comments
 (0)