Merge "Use computed size on object PUT, not fstat."

This commit is contained in:
Jenkins 2012-11-08 16:59:05 +00:00 committed by Gerrit Code Review
commit 0ab0c813c0
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ class ObjectController(object):
'X-Timestamp': request.headers['x-timestamp'],
'Content-Type': request.headers['content-type'],
'ETag': etag,
'Content-Length': str(os.fstat(fd).st_size),
'Content-Length': str(upload_size),
}
metadata.update(val for val in request.headers.iteritems()
if val[0].lower().startswith('x-object-meta-') and