Revision 104626e3 pithos/api/functions.py
b/pithos/api/functions.py | ||
---|---|---|
411 | 411 |
# unauthorized (401), |
412 | 412 |
# badRequest (400) |
413 | 413 |
|
414 |
version = get_int_parameter(request, 'version')
|
|
414 |
version = request.GET.get('version')
|
|
415 | 415 |
try: |
416 | 416 |
meta = backend.get_object_meta(request.user, v_account, v_container, v_object, version) |
417 | 417 |
if version is None: |
... | ... | |
443 | 443 |
# badRequest (400), |
444 | 444 |
# notModified (304) |
445 | 445 |
|
446 |
version = get_int_parameter(request, 'version')
|
|
446 |
version = request.GET.get('version')
|
|
447 | 447 |
|
448 | 448 |
# Reply with the version list. Do this first, as the object may be deleted. |
449 |
if version is None and request.GET.get('version') == 'list':
|
|
449 |
if version == 'list': |
|
450 | 450 |
if request.serialization == 'text': |
451 | 451 |
raise BadRequest('No format specified for version list.') |
452 | 452 |
|
Also available in: Unified diff