Skip to content

Commit 93044a0

Browse files
authored
Merge pull request #186 from OrangeDog/patch-1
Avoid logging "unknown" directives where there aren't any.
2 parents dc4e179 + 2bdfb28 commit 93044a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cachecontrol/controller.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def parse_cache_control(self, headers):
8484
retval = {}
8585

8686
for cc_directive in cc_headers.split(','):
87+
if not cc_directive.strip():
88+
continue
89+
8790
parts = cc_directive.split('=', 1)
8891
directive = parts[0].strip()
8992

0 commit comments

Comments
 (0)