don't decode signature headers
Fixes https://pagure.io/koji/issue/2221 some headers, like sigmd5, are inherently binary
This commit is contained in:
parent
000d270a15
commit
b3687f2b25
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue