From a1a58fb93f7b504cd7c488709ad0604fadc358f3 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 2 Jan 2024 00:57:48 +0100 Subject: Uploading objects is a PUT, not a POST --- cmd/git-lfs-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/git-lfs-server/main.go') diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index 9ba01a2..78a9b0f 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go @@ -613,7 +613,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } reqlog(ctx, "Repository: %s; OID: %s", repo, oid) - if r.Method != http.MethodPost { + if r.Method != http.MethodPut { makeRespError(ctx, w, "Method not allowed", http.StatusMethodNotAllowed) return } -- cgit v1.2.3