changed env var in request to properly log the method

This commit is contained in:
John Dickinson 2010-10-28 15:34:16 -05:00
parent b5575a9de3
commit 34525d6c6a

View File

@ -848,7 +848,7 @@ class ObjectController(Controller):
del new_headers['Destination']
new_path = '/' + self.account_name + dest
new_req = Request.blank(new_path,
environ={'REQUEST_METHOD': 'PUT'}, headers=new_headers)
environ={'REQUEST_METHOD': 'COPY'}, headers=new_headers)
return self.PUT(new_req)