Skip to content

Commit

Permalink
quote etags in OCIS-Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
individual-it committed Oct 8, 2020
1 parent bccddc4 commit 5161e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/fs/ocis/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ func (n *Node) AsResourceInfo(ctx context.Context) (ri *provider.ResourceInfo, e

// use temporary etag if it is set
if b, err := xattr.Get(nodePath, tmpEtagAttr); err == nil {
ri.Etag = string(b)
ri.Etag = fmt.Sprintf(`"%x"`, string(b))
} else {
ri.Etag = fmt.Sprintf("%x", h.Sum(nil))
ri.Etag = fmt.Sprintf(`"%x"`, h.Sum(nil))
}

// mtime uses tmtime if present
Expand Down

0 comments on commit 5161e87

Please sign in to comment.