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 }