go-http-utils / etag

:ticket:HTTP etag support middleware for Go
https://godoc.org/github.com/go-http-utils/etag
MIT License
13 stars 7 forks source link

Doesn't fully abide to RFC 7232 #3

Open raffi-semerciyan opened 1 year ago

raffi-semerciyan commented 1 year ago

When using this library with some CDN providers, they would ignore the generated ETAG header due to the fact that the ETAG hash is not surrounded by double quotes as specified by RFC 7232.

Example of what this library is generating: Etag: 2406314-3c0e9f103ba4e30b32ef737d0f83d8cee85e9fba

Example of what is expected according to RFC 7232: Etag: "2406314-3c0e9f103ba4e30b32ef737d0f83d8cee85e9fba"