def get_accept_mimetypes(request):
    accept_types = request.headers.get('accept', None)
    if (accept_types is None):
        return {}
    split_types = str(accept_types).split(',')
    return OrderedDict([((s, 1), s) for s in split_types])
def get_accept_mimetypes(request):
    accept_types = request.headers.get('accept', None)
    if (accept_types is None):
        return {}
    split_types = str(accept_types).split(',')
    return OrderedDict([((s, 1), s) for s in split_types])