mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #2960 from guol-fnst/fix_errcode
fix http response error code
This commit is contained in:
commit
70ad3ccf4f
|
@ -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…
Reference in a new issue