File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ func (s *Server) getManifest(w http.ResponseWriter, req *http.Request) {
110
110
w .WriteHeader (500 )
111
111
return
112
112
}
113
- defer publication .Close ()
114
113
115
114
// Create "self" link in manifest
116
115
scheme := "http://"
@@ -158,7 +157,7 @@ func (s *Server) getManifest(w http.ResponseWriter, req *http.Request) {
158
157
w .Header ().Set ("access-control-allow-origin" , "*" ) // TODO: provide options?
159
158
160
159
// Etag based on hash of the manifest bytes
161
- etag := strconv .FormatUint (xxh3 .Hash (identJSON .Bytes ()), 36 )
160
+ etag := `"` + strconv .FormatUint (xxh3 .Hash (identJSON .Bytes ()), 36 ) + `"`
162
161
w .Header ().Set ("Etag" , etag )
163
162
if match := req .Header .Get ("If-None-Match" ); match != "" {
164
163
if strings .Contains (match , etag ) {
@@ -187,7 +186,6 @@ func (s *Server) getAsset(w http.ResponseWriter, r *http.Request) {
187
186
w .WriteHeader (500 )
188
187
return
189
188
}
190
- defer publication .Close ()
191
189
192
190
// Make sure the asset exists in the publication
193
191
href := path .Clean (vars ["asset" ])
You can’t perform that action at this time.
0 commit comments