def wsgi_key_of_header_name(header_name):
    """
    >>> wsgi_key_of_header_name('Accept-Language')
    'HTTP_ACCEPT_LANGUAGE'
    >>> wsgi_key_of_header_name('Authorization')
    'HTTP_AUTHORIZATION'

    """
    return 'HTTP_' + header_name.replace('-', '_').upper()
