Skip to content

Commit

Permalink
Do not use quotes for hash headers
Browse files Browse the repository at this point in the history
  • Loading branch information
studna committed Jun 25, 2021
1 parent e8bb099 commit 20d2f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/object-handlers-common.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ func setPutObjHeaders(w http.ResponseWriter, objInfo ObjectInfo, delete bool) {
// Therefore, we have to set the ETag directly as map entry.
if objInfo.ETag != "" && !delete {
w.Header()[xhttp.ETag] = []string{`"` + objInfo.ETag + `"`}
w.Header()[fleekIpfsContentHashV0] = []string{`"` + convertToHashV0(objInfo.ETag) + `"`}
w.Header()[fleekIpfsContentHash] = []string{`"` + objInfo.ETag + `"`}
w.Header()[fleekIpfsContentHashV0] = []string{convertToHashV0(objInfo.ETag)}
w.Header()[fleekIpfsContentHash] = []string{objInfo.ETag}
}

// Set the relevant version ID as part of the response header.
Expand Down

0 comments on commit 20d2f91

Please sign in to comment.