reset bytes_transferred for copy requests

This commit is contained in:
John Dickinson 2010-10-28 15:33:31 -05:00
parent 937554c85e
commit b5575a9de3

View File

@ -774,6 +774,8 @@ class ObjectController(Controller):
for k, v in req.headers.items():
if k.lower().startswith('x-object-meta-'):
resp.headers[k] = v
# reset the bytes, since the user didn't actually send anything
req.bytes_transferred = 0
resp.last_modified = float(req.headers['X-Timestamp'])
return resp