mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-19 15:03:41 +08:00
commit
02e8f00138
@ -142,6 +142,9 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
|||||||
|
|
||||||
if rangeReq := r.Header.Get("Range"); rangeReq == "" {
|
if rangeReq := r.Header.Get("Range"); rangeReq == "" {
|
||||||
ext := filepath.Ext(filename)
|
ext := filepath.Ext(filename)
|
||||||
|
if len(ext) > 0 {
|
||||||
|
ext = strings.ToLower(ext)
|
||||||
|
}
|
||||||
width, height, mode, shouldResize := shouldResizeImages(ext, r)
|
width, height, mode, shouldResize := shouldResizeImages(ext, r)
|
||||||
if shouldResize {
|
if shouldResize {
|
||||||
data, err := filer.ReadAll(fs.filer.MasterClient, entry.Chunks)
|
data, err := filer.ReadAll(fs.filer.MasterClient, entry.Chunks)
|
||||||
|
Loading…
Reference in New Issue
Block a user