Skip to content

Commit

Permalink
Merge pull request #9 from mojura/strip-leading-and-trailing-quotes-f…
Browse files Browse the repository at this point in the history
…or-hash

strip leading and trailing quotes for hash
  • Loading branch information
itsmontoya authored Jan 21, 2025
2 parents 2264d83 + eb8203b commit f476054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (s *S3) GetInfo(ctx context.Context, prefix, filename string) (info kiroku.

info.Key = filename
info.Size = getPtrValue(head.ContentLength)
info.Hash = getPtrValue(head.ETag)
info.Hash = strings.Trim(getPtrValue(head.ETag), `"`)
info.LastModified = getPtrValue(head.LastModified).Unix()
return
}
Expand Down

0 comments on commit f476054

Please sign in to comment.