Browse Source

fix http response error code

pull/2960/head
guol-fnst 3 years ago
parent
commit
8b2552f944
  1. 2
      weed/server/filer_server_handlers_read.go

2
weed/server/filer_server_handlers_read.go

@ -205,7 +205,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
err := filer.ReadAll(data, fs.filer.MasterClient, entry.Chunks) err := filer.ReadAll(data, fs.filer.MasterClient, entry.Chunks)
if err != nil { if err != nil {
glog.Errorf("failed to read %s: %v", path, err) glog.Errorf("failed to read %s: %v", path, err)
w.WriteHeader(http.StatusNotModified)
w.WriteHeader(http.StatusInternalServerError)
return return
} }
rs, _, _ := images.Resized(ext, bytes.NewReader(data), width, height, mode) rs, _, _ := images.Resized(ext, bytes.NewReader(data), width, height, mode)

Loading…
Cancel
Save