Skip to content

Commit e1f3e50

Browse files
committed
🐛 fixed comparison of values
1 parent 21bf6fd commit e1f3e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drheader/validators/header_validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ def validate_value(self, config, header, directive=None):
6363
header_items_without_ma = []
6464
for item in header_items:
6565
if "max-age" not in item:
66-
header_items_without_ma.append(item)
66+
header_items_without_ma.append(item.lower())
6767
else:
6868
header_items_ma = item.split("max-age=")[1]
6969
expected_without_ma = []
7070
for expect in expected:
7171
if "max-age" not in expect:
72-
expected_without_ma.append(expect)
72+
expected_without_ma.append(expect.lower())
7373
else:
7474
expected_ma = expect.split("max-age=")[1]
7575
if header_items_without_ma != expected_without_ma or int(header_items_ma) < int(expected_ma):

0 commit comments

Comments
 (0)