Revision 2938333b pithos/api/util.py

b/pithos/api/util.py
684 684
    elif format == 'xml':
685 685
        return 'xml'
686 686
    
687
    for item in request.META.get('HTTP_ACCEPT', '').split(','):
688
        accept, sep, rest = item.strip().partition(';')
689
        if accept == 'application/json':
690
            return 'json'
691
        elif accept == 'application/xml' or accept == 'text/xml':
692
            return 'xml'
687
#     for item in request.META.get('HTTP_ACCEPT', '').split(','):
688
#         accept, sep, rest = item.strip().partition(';')
689
#         if accept == 'application/json':
690
#             return 'json'
691
#         elif accept == 'application/xml' or accept == 'text/xml':
692
#             return 'xml'
693 693
    
694 694
    return 'text'
695 695

  

Also available in: Unified diff