Revision 8fbfd37b

b/pithos/api/functions.py
39 39
from django.utils import simplejson as json
40 40
from django.utils.http import parse_etags
41 41
from django.utils.encoding import smart_str
42
from django.views.decorators.csrf import csrf_exempt
42 43

  
43 44
from pithos.lib.filter import parse_filters
44 45

  
......
59 60
logger = logging.getLogger(__name__)
60 61

  
61 62

  
63
@csrf_exempt
62 64
def top_demux(request):
63 65
    if request.method == 'GET':
64 66
        if getattr(request, 'user', None) is not None:
......
67 69
    else:
68 70
        return method_not_allowed(request)
69 71

  
72
@csrf_exempt
70 73
def account_demux(request, v_account):
71 74
    if request.method == 'HEAD':
72 75
        return account_meta(request, v_account)
......
77 80
    else:
78 81
        return method_not_allowed(request)
79 82

  
83
@csrf_exempt
80 84
def container_demux(request, v_account, v_container):
81 85
    if request.method == 'HEAD':
82 86
        return container_meta(request, v_account, v_container)
......
91 95
    else:
92 96
        return method_not_allowed(request)
93 97

  
98
@csrf_exempt
94 99
def object_demux(request, v_account, v_container, v_object):
95 100
    if request.method == 'HEAD':
96 101
        return object_meta(request, v_account, v_container, v_object)
b/pithos/api/public.py
34 34
import logging
35 35

  
36 36
from django.http import HttpResponse
37
from django.views.decorators.csrf import csrf_exempt
37 38

  
38 39
from pithos.api.faults import (Fault, BadRequest, ItemNotFound)
39 40
from pithos.api.util import (put_object_headers, update_manifest_meta,
......
45 46
logger = logging.getLogger(__name__)
46 47

  
47 48

  
49
@csrf_exempt
48 50
def public_demux(request, v_public):
49 51
    if request.method == 'HEAD':
50 52
        return public_meta(request, v_public)

Also available in: Unified diff