Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated manifest files to not filter headers returned by the manifest…

… object
  • Loading branch information...
commit fe3c43628eb010325933d9f5aa8ad15a5feeabe6 1 parent f96efd9
@notmyname notmyname authored
Showing with 3 additions and 16 deletions.
  1. +3 −16 swift/proxy/server.py
View
19 swift/proxy/server.py
@@ -819,13 +819,7 @@ def listing_iter():
yield obj
marker = sublisting[-1]['name']
- headers = {
- 'X-Object-Manifest': resp.headers['x-object-manifest'],
- 'Content-Type': resp.content_type}
- for key, value in resp.headers.iteritems():
- if key.lower().startswith('x-object-meta-'):
- headers[key] = value
- resp = Response(headers=headers, request=req,
+ resp = Response(headers=resp.headers, request=req,
conditional_response=True)
if req.method == 'HEAD':
# These shenanigans are because webob translates the HEAD
@@ -859,20 +853,13 @@ def head_response(environ, start_response):
content_length = 0
last_modified = resp.last_modified
etag = md5().hexdigest()
- headers = {
- 'X-Object-Manifest': resp.headers['x-object-manifest'],
- 'Content-Type': resp.content_type,
- 'Content-Length': content_length,
- 'ETag': etag}
- for key, value in resp.headers.iteritems():
- if key.lower().startswith('x-object-meta-'):
- headers[key] = value
- resp = Response(headers=headers, request=req,
+ resp = Response(headers=resp.headers, request=req,
conditional_response=True)
resp.app_iter = SegmentedIterable(self, lcontainer, listing,
resp)
resp.content_length = content_length
resp.last_modified = last_modified
+ resp.etag = etag
resp.headers['accept-ranges'] = 'bytes'
return resp
Please sign in to comment.
Something went wrong with that request. Please try again.