mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-02-12 13:35:24 +01:00
commit
02e8f00138
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
|||
|
||||
if rangeReq := r.Header.Get("Range"); rangeReq == "" {
|
||||
ext := filepath.Ext(filename)
|
||||
if len(ext) > 0 {
|
||||
ext = strings.ToLower(ext)
|
||||
}
|
||||
width, height, mode, shouldResize := shouldResizeImages(ext, r)
|
||||
if shouldResize {
|
||||
data, err := filer.ReadAll(fs.filer.MasterClient, entry.Chunks)
|
||||
|
|
Loading…
Reference in a new issue