1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00
This commit is contained in:
Peter Bieringer 2025-04-22 21:31:59 +02:00
parent 0ef93a9c8a
commit 12714cd25c

View file

@ -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