Holy crap, I can't believe I messed that up
authorLanius Trolling <lanius@laniustrolling.dev>
Sun, 5 May 2024 15:52:55 +0000 (11:52 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Sun, 5 May 2024 15:52:55 +0000 (11:52 -0400)
src/jvmMain/kotlin/info/mechyrdia/route/ResourceWebDav.kt

index 81f2c6acdbb611e29faf68cd73f9f7aa7895ab57..fcba745e088c89d0f9b4beebad847d787dbdc2b7 100644 (file)
@@ -347,7 +347,7 @@ fun Route.installWebDav() {
                method(HttpMethod.parse("MKCOL")) { handle { call.webDavMkCol(call.webDavPath) } }
                method(HttpMethod.parse("PUT")) { handle { call.webDavPut(call.webDavPath) } }
                method(HttpMethod.parse("COPY")) { handle { call.webDavCopy(call.webDavPath) } }
-               method(HttpMethod.parse("MOVE")) { handle { call.webDavMkCol(call.webDavPath) } }
+               method(HttpMethod.parse("MOVE")) { handle { call.webDavMove(call.webDavPath) } }
                method(HttpMethod.parse("DELETE")) { handle { call.webDavDelete(call.webDavPath) } }
                method(HttpMethod.parse("LOCK")) { handle { call.webDavLock(call.webDavPath) } }
                method(HttpMethod.parse("UNLOCK")) { handle { call.webDavUnlock(call.webDavPath) } }