Merge "Use computed size on object PUT, not fstat."
This commit is contained in:
@@ -631,7 +631,7 @@ class ObjectController(object):
|
|||||||
'X-Timestamp': request.headers['x-timestamp'],
|
'X-Timestamp': request.headers['x-timestamp'],
|
||||||
'Content-Type': request.headers['content-type'],
|
'Content-Type': request.headers['content-type'],
|
||||||
'ETag': etag,
|
'ETag': etag,
|
||||||
'Content-Length': str(os.fstat(fd).st_size),
|
'Content-Length': str(upload_size),
|
||||||
}
|
}
|
||||||
metadata.update(val for val in request.headers.iteritems()
|
metadata.update(val for val in request.headers.iteritems()
|
||||||
if val[0].lower().startswith('x-object-meta-') and
|
if val[0].lower().startswith('x-object-meta-') and
|
||||||
|
|||||||
Reference in New Issue
Block a user