diff options
Diffstat (limited to 'cmd/git-lfs-server')
-rw-r--r-- | cmd/git-lfs-server/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |