

def _safe_header(self, name, value):
    if (name in SENSITIVE_HEADERS):
        v = value.encode('utf-8')
        h = hashlib.sha1(v)
        d = h.hexdigest()
        return (encodeutils.safe_decode(name), ('{SHA1}%s' % d))
    else:
        return (encodeutils.safe_decode(name), encodeutils.safe_decode(value))

dataset/ETHPy150Open openstack-infra/python-storyboardclient/storyboardclient/openstack/common/apiclient/client.py HTTPClient._safe_header/original