diff options
Diffstat (limited to 'libpathod/utils.py')
| -rw-r--r-- | libpathod/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpathod/utils.py b/libpathod/utils.py index ac0c0e4c..70a97cff 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -26,9 +26,10 @@ def get_header(val, headers): """ Header keys may be Values, so we have to "generate" them as we try the match. """ - for k, v in headers: + for h in headers: + k = h.key.get_generator({}) if len(k) == len(val) and k[:].lower() == val.lower(): - return v + return h return None |
