aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-02 00:57:48 +0100
committerLibravatar Rutger Broekhoff2024-01-02 00:57:48 +0100
commita1a58fb93f7b504cd7c488709ad0604fadc358f3 (patch)
treecaf5a52d6b531346c345bface91345a03ac7cc37 /cmd
parent97a37fb8a07afa51d0ed721ef7e6ea791937b710 (diff)
downloadgitolfs3-a1a58fb93f7b504cd7c488709ad0604fadc358f3.tar.gz
gitolfs3-a1a58fb93f7b504cd7c488709ad0604fadc358f3.zip
Uploading objects is a PUT, not a POST
Diffstat (limited to 'cmd')
-rw-r--r--cmd/git-lfs-server/main.go2
1 files changed, 1 insertions, 1 deletions
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) {
613 } 613 }
614 reqlog(ctx, "Repository: %s; OID: %s", repo, oid) 614 reqlog(ctx, "Repository: %s; OID: %s", repo, oid)
615 615
616 if r.Method != http.MethodPost { 616 if r.Method != http.MethodPut {
617 makeRespError(ctx, w, "Method not allowed", http.StatusMethodNotAllowed) 617 makeRespError(ctx, w, "Method not allowed", http.StatusMethodNotAllowed)
618 return 618 return
619 } 619 }