Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Oct 17, 2023
1 parent ee96035 commit 75d138d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ func (h *BucketOwner) getDir(ctx *gin.Context, input string, filter tar.Filter)
tarWriter.Close()
}()
err := tarWriter.AssertDir(input)
if err != nil {
_ = ctx.Error(err)
return
} else {
if err == nil {
h.Attachment(ctx, pathlib.Base(input)+".tar.gz")
ctx.Writer.Header().Set(Directory, DirectoryExpand)
ctx.Status(http.StatusOK)
} else {
_ = ctx.Error(err)
return
}
_ = tarWriter.AddDir(input)
return
Expand Down

0 comments on commit 75d138d

Please sign in to comment.