From ad2dc363e20ee6ed2a51f58f2c8481ba506fb780 Mon Sep 17 00:00:00 2001 From: Lennart Kloock Date: Sun, 30 Aug 2026 20:32:15 +0200 Subject: [PATCH] fix: http method check --- sync/handle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/handle.go b/sync/handle.go index 6fdac2d..863a8fc 100644 --- a/sync/handle.go +++ b/sync/handle.go @@ -32,7 +32,7 @@ var PublicKeyLocation string // HandleSyncRequest receives sync requests and starts the sync // process with the received data. func HandleSyncRequest(w http.ResponseWriter, req *http.Request, noAuth bool) { - if req.Method != http.MethodPost { + if req.Method != http.MethodPut { http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) return }