diff --git a/hub/kojihub.py b/hub/kojihub.py index 947f60dd..d3000384 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -9883,10 +9883,7 @@ class RootExports(object): raise koji.GenericError('either rpmID or taskID and filepath must be specified') headers = koji.get_header_fields(rpm_path, headers) - for key, value in headers.items(): - if isinstance(value, six.string_types): - headers[key] = koji.fixEncoding(value, remove_nonprintable=True) - return headers + return koji.fixEncodingRecurse(headers, remove_nonprintable=True) queryRPMSigs = staticmethod(query_rpm_sigs)