Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
9807ff1e
Commit
9807ff1e
authored
Jan 29, 2014
by
Chrysostomos Nanakos
Committed by
Christos Stavrakakis
Mar 31, 2014
Browse files
pithos: Change object header attribute 'Map-Exists' to 'Available'
parent
b719122f
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/pithos/api/util.py
View file @
9807ff1e
...
...
@@ -243,7 +243,7 @@ def put_object_headers(response, meta, restricted=False, token=None,
response
.
override_serialization
=
True
response
[
'Content-Type'
]
=
meta
.
get
(
'type'
,
'application/octet-stream'
)
response
[
'Last-Modified'
]
=
http_date
(
int
(
meta
[
'modified'
]))
response
[
'
Map-Exists
'
]
=
meta
[
'available'
]
response
[
'
Available
'
]
=
meta
[
'available'
]
response
[
'Map-Checked-At'
]
=
(
http_date
(
int
(
meta
[
'map_check_timestamp'
]))
if
meta
[
'map_check_timestamp'
]
is
not
None
else
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment