This commit is contained in:
@@ -282,6 +282,10 @@ class ApplicationPartPut(ApplicationBase):
|
||||
logger.warning(
|
||||
"Bad PUT request on %r (upload): %s", path, e, exc_info=True)
|
||||
return httputils.BAD_REQUEST
|
||||
if (item and item.uid == prepared_item.uid):
|
||||
logger.debug("PUT request updated existing item %r", path)
|
||||
headers = {"ETag": etag}
|
||||
return client.NO_CONTENT, headers, None
|
||||
|
||||
headers = {"ETag": etag}
|
||||
return client.CREATED, headers, None
|
||||
|
||||
Reference in New Issue
Block a user