aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.txt6
-rw-r--r--cmd/git-lfs-server/main.go2
2 files changed, 8 insertions, 0 deletions
diff --git a/README.txt b/README.txt
index 75d9e97..4a9261b 100644
--- a/README.txt
+++ b/README.txt
@@ -3,3 +3,9 @@ gitolfs3
3 3
4Yes, this is indeed an integration between Gitolite, Git LFS and Scaleway 4Yes, this is indeed an integration between Gitolite, Git LFS and Scaleway
5Object Storage. 5Object Storage.
6
7To be honest, the code is pretty bad right now and solely serves my needs.
8Although I will be doing some cleanups, I have no interest in making this
9program work for people with different use cases than me. In case you want to
10use this software, feel free to, but expect that you will basically have to
11'make it your own'.
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go
index b13f997..e5c0788 100644
--- a/cmd/git-lfs-server/main.go
+++ b/cmd/git-lfs-server/main.go
@@ -484,11 +484,13 @@ func (h *handler) handleGetObject(w http.ResponseWriter, r *http.Request, repo,
484 if err != nil { 484 if err != nil {
485 reqlog(ctx, "Failed to stat: %s", err) 485 reqlog(ctx, "Failed to stat: %s", err)
486 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) 486 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError)
487 return
487 } 488 }
488 489
489 if stat.Size != claims.Gitolfs3.Size { 490 if stat.Size != claims.Gitolfs3.Size {
490 reqlog(ctx, "Claims size does not match S3 object size") 491 reqlog(ctx, "Claims size does not match S3 object size")
491 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) 492 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError)
493 return
492 } 494 }
493 495
494 w.Header().Set("Content-Length", strconv.FormatInt(claims.Gitolfs3.Size, 10)) 496 w.Header().Set("Content-Length", strconv.FormatInt(claims.Gitolfs3.Size, 10))