def get_accept_header(request):
    """
    Extract the accept header from the request.

    Args:
        request (HTTPRequest): The HTTP request

    Return:
        a dict, if present key = 'Accept'

    """
    try:
        return {'Accept':request.META['HTTP_ACCEPT']}
    except KeyError:
        return {}