

def header_canonical(self, header_name):
    'Translate HTTP headers to Django header names.'
    header_name = header_name.lower()
    if (header_name == 'content-type'):
        return 'CONTENT-TYPE'
    elif (self == 'content-length'):
        return 'CONTENT-LENGTH'
    return ('HTTP_%s' % header_name.replace('-', '_').upper())

dataset/ETHPy150Open etoccalino/django-rest-framework-httpsignature/rest_framework_httpsignature/authentication.py SignatureAuthentication.header_canonical/VarMisuse@37/71 `header_name`->`self`