summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index 23e96ce..29451df 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -152,7 +152,7 @@ func makeETag(content io.Reader) (string, error) {
if _, err := io.Copy(h, content); err != nil {
return "", err
}
- return `"` + base64.RawURLEncoding.EncodeToString(h.Sum(nil)[:8]) + `"`, nil
+ return `W/"` + base64.RawURLEncoding.EncodeToString(h.Sum(nil)[:8]) + `"`, nil
}
var (
@@ -964,9 +964,6 @@ func (w *gzipResponseWriter) ReadFrom(r io.Reader) (int64, error) {
w.Header().Set("Content-Encoding", "gzip")
w.Header().Del("Content-Length")
w.Header().Del("Accept-Ranges")
- if eTag := w.Header().Get("ETag"); eTag != "" {
- w.Header().Set("ETag", strings.TrimSuffix(eTag, `"`)+`g"`)
- }
}
if w.code != 0 {
w.ResponseWriter.WriteHeader(w.code)