1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-07 09:37:49 +02:00

fix http response error code

This commit is contained in:
guol-fnst 2022-04-24 11:07:27 +08:00
parent f3d4576790
commit 8b2552f944

View file

@ -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)