From 8b2552f944902e57c9c81dbfeffc94c3d1d6f3f1 Mon Sep 17 00:00:00 2001 From: guol-fnst Date: Sun, 24 Apr 2022 11:07:27 +0800 Subject: [PATCH] fix http response error code --- weed/server/filer_server_handlers_read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index 2bac585e9..7be9f5229 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/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) if err != nil { glog.Errorf("failed to read %s: %v", path, err) - w.WriteHeader(http.StatusNotModified) + w.WriteHeader(http.StatusInternalServerError) return } rs, _, _ := images.Resized(ext, bytes.NewReader(data), width, height, mode)