def _get_content_type_header(request):
    """
    Get the content type from the request. Return an empty dict if it is not set

    Args:
        request (HTTPRequest): The HTTP request

    Return:
        a dict containing the content type

    """
    try:
        return {'Content-Type':request.META['CONTENT_TYPE']}
    except KeyError:
        return {}