Revision 8fbfd37b pithos/api/functions.py
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) |
Also available in: Unified diff