diff --git a/pkg/storage/fs/ocis/node.go b/pkg/storage/fs/ocis/node.go index 30bde6822d4..a81ce8c9160 100644 --- a/pkg/storage/fs/ocis/node.go +++ b/pkg/storage/fs/ocis/node.go @@ -345,7 +345,7 @@ func calculateEtag(nodeID string, tmTime time.Time) (string, error) { } else { return "", err } - return `"` + hex.EncodeToString(h.Sum(nil)) + `"`, nil + return fmt.Sprintf(`"%x"`, h.Sum(nil)), nil } // SetMtime sets the mtime and atime of a node