aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/git-lfs-server
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/git-lfs-server')
-rw-r--r--cmd/git-lfs-server/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go
index c7feeff..0652e87 100644
--- a/cmd/git-lfs-server/main.go
+++ b/cmd/git-lfs-server/main.go
@@ -490,6 +490,9 @@ func (h *handler) handleGetObject(w http.ResponseWriter, r *http.Request, repo,
490 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) 490 makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError)
491 } 491 }
492 492
493 w.Header().Set("Content-Length", strconv.FormatInt(claims.Gitolfs3.Size, 10))
494 w.WriteHeader(http.StatusOK)
495
493 vr := newValidatingReader(claims.Gitolfs3.Size, sha256Raw, obj) 496 vr := newValidatingReader(claims.Gitolfs3.Size, sha256Raw, obj)
494 _, err = io.Copy(w, vr) 497 _, err = io.Copy(w, vr)
495 if errors.Is(err, errBadSum) { 498 if errors.Is(err, errBadSum) {