Support x-amz-copy-source-if-* for PUT Object Copy

Support following headers for PUT Object Copy.
- x-amz-copy-source-if-match
- x-amz-copy-source-if-none-match
- x-amz-copy-source-if-modified-since
- x-amz-copy-source-if-unmodified-since

And I'll support those headers for Upload Part Copy in next patch.

Change-Id: I0dbb37310a8d252b292eef41f7b777f9dbae69d6
This commit is contained in:
Naoto Nishizono
2014-12-24 20:03:11 +09:00
parent 14fc9f04d7
commit ac1130be82
4 changed files with 171 additions and 8 deletions

View File

@@ -54,6 +54,7 @@ class ObjectController(Controller):
"""
Handle PUT Object and PUT Object (Copy) request
"""
req.check_copy_source(self.app)
resp = req.get_response(self.app)
if 'X-Amz-Copy-Source' in req.headers: