From 9e7ea8b5f110a54b3583c1bf7bcae54853fb121f Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 17 Sep 2025 10:31:20 +0000 Subject: [PATCH] Fix ETag header format. --- src/pages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages.go b/src/pages.go index c5888c6..7852a05 100644 --- a/src/pages.go +++ b/src/pages.go @@ -70,7 +70,7 @@ func getPage(w http.ResponseWriter, r *http.Request) error { } else if entry.Type == Type_InlineFile { reader = bytes.NewReader(entry.Data) } else if entry.Type == Type_ExternalFile { - etag := fmt.Sprintf(`"%x"`, entry.Data) + etag := fmt.Sprintf(`"%s"`, entry.Data) if r.Header.Get("If-None-Match") == etag { w.WriteHeader(http.StatusNotModified) return nil