Browse Source

Merge branch 'master' of https://github.com/chrislusf/seaweedfs

pull/2690/head
chrislu 3 years ago
parent
commit
daa27b2119
  1. 6
      weed/server/filer_server_handlers_read.go

6
weed/server/filer_server_handlers_read.go

@ -21,7 +21,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/util"
)
// Validates the preconditions. Returns true if GET/HEAD operation should not proceed.
// Preconditions supported are:
// If-Modified-Since
@ -119,6 +118,11 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
return
}
if r.URL.Query().Has("metadata") {
writeJsonQuiet(w, r, http.StatusOK, entry)
return
}
etag := filer.ETagEntry(entry)
if checkPreconditions(w, r, entry) {
return

Loading…
Cancel
Save