Skip to content

Commit

Permalink
fix(pgs): fix etag missing quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-chaffee committed Dec 31, 2024
1 parent 481ab19 commit 61a841c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgs/web_asset_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ func (h *ApiAssetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Add("content-length", strconv.Itoa(int(info.Size)))
}
if info.ETag != "" {
w.Header().Add("etag", info.ETag)
// Minio SDK trims off the mandatory quotes (RFC 7232 § 2.3)
w.Header().Add("etag", fmt.Sprintf("\"%s\"", info.ETag))
}

if !info.LastModified.IsZero() {
Expand Down

0 comments on commit 61a841c

Please sign in to comment.