Revision 2560c061 snf-pithos-app/pithos/api/functions.py
b/snf-pithos-app/pithos/api/functions.py | ||
---|---|---|
564 | 564 |
if (content_type |
565 | 565 |
and content_type == 'application/octet-stream' |
566 | 566 |
and content_length != 0): |
567 |
|
|
568 |
try: |
|
569 |
request.backend.can_write_container(request.user_uniq, v_account, |
|
570 |
v_container) |
|
571 |
except NotAllowedError: |
|
572 |
raise faults.Forbidden('Not allowed') |
|
573 |
|
|
567 | 574 |
for data in socket_read_iterator(request, content_length, |
568 | 575 |
request.backend.block_size): |
569 | 576 |
# TODO: Raise 408 (Request Timeout) if this takes too long. |
Also available in: Unified diff