dav: refactor overwrite header

This commit is contained in:
Lennart
2025-09-23 11:43:42 +02:00
parent 602c511c90
commit 4919514d09
4 changed files with 52 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ pub(crate) async fn axum_route_copy<R: ResourceService>(
State(resource_service): State<R>,
depth: Option<Depth>,
principal: R::Principal,
overwrite: Overwrite,
Overwrite(overwrite): Overwrite,
matched_path: MatchedPath,
header_map: HeaderMap,
) -> Result<Response, R::Error> {
@@ -39,7 +39,7 @@ pub(crate) async fn axum_route_copy<R: ResourceService>(
.map_err(|_| crate::Error::Forbidden)?;
if resource_service
.copy_resource(&path, &dest_path, &principal, overwrite.is_true())
.copy_resource(&path, &dest_path, &principal, overwrite)
.await?
{
// Overwritten