don't decode signature headers

Fixes https://pagure.io/koji/issue/2221

some headers, like sigmd5, are inherently binary
This commit is contained in:
Mike McLean 2020-05-20 10:55:38 -04:00 committed by Tomas Kopecek
parent 000d270a15
commit b3687f2b25

View file

@ -1012,6 +1012,11 @@ def get_header_field(hdr, name, src_arch=False):
# no such header
pass
# some string results are binary and should not be decoded
if name.startswith('SIG'):
return result
# otherwise we decode any strings
return _decode_item(result)