aboutsummaryrefslogtreecommitdiff
path: root/aero-proto/src/dav/controller.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 11:43:57 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 11:43:57 +0200
commit52d767edae38cc0d3effd216152ff2dcf6d19239 (patch)
tree15b32a7bdcb6f12b4c9f1dc875090a5ac7d614d7 /aero-proto/src/dav/controller.rs
parent5d85fd16f2625b6efb7ed70254a275237dfab1eb (diff)
downloadaerogramme-52d767edae38cc0d3effd216152ff2dcf6d19239.tar.gz
aerogramme-52d767edae38cc0d3effd216152ff2dcf6d19239.zip
Parse If-{None-}Match headers
Diffstat (limited to 'aero-proto/src/dav/controller.rs')
-rw-r--r--aero-proto/src/dav/controller.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/aero-proto/src/dav/controller.rs b/aero-proto/src/dav/controller.rs
index 2dcc7bc..aee86fa 100644
--- a/aero-proto/src/dav/controller.rs
+++ b/aero-proto/src/dav/controller.rs
@@ -180,8 +180,7 @@ impl Controller {
}
async fn put(self) -> Result<HttpResponse> {
- //@FIXME temporary, look at If-None-Match & If-Match headers
- let put_policy = PutPolicy::CreateOnly;
+ let put_policy = codec::put_policy(&self.req)?;
let stream_of_frames = BodyStream::new(self.req.into_body());
let stream_of_bytes = stream_of_frames