mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
This commit is contained in:
parent
0ef93a9c8a
commit
12714cd25c
1 changed files with 4 additions and 0 deletions
|
@ -282,6 +282,10 @@ class ApplicationPartPut(ApplicationBase):
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Bad PUT request on %r (upload): %s", path, e, exc_info=True)
|
"Bad PUT request on %r (upload): %s", path, e, exc_info=True)
|
||||||
return httputils.BAD_REQUEST
|
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}
|
headers = {"ETag": etag}
|
||||||
return client.CREATED, headers, None
|
return client.CREATED, headers, None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue