fix return
This commit is contained in:
		@@ -112,7 +112,7 @@ func (s Webp) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.H
 | 
			
		||||
	default:
 | 
			
		||||
		return next.ServeHTTP(w, r)
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	img, err := decoder(bytes.NewReader(resp.Body.Bytes()))
 | 
			
		||||
	if err != nil || img == nil {
 | 
			
		||||
		log.Println(err)
 | 
			
		||||
@@ -128,7 +128,7 @@ func (s Webp) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.H
 | 
			
		||||
 | 
			
		||||
	fh,err:=os.Create(cacheFile)
 | 
			
		||||
	fh.Write(buf.Bytes())
 | 
			
		||||
	w.Write(buf.Bytes())
 | 
			
		||||
//	w.Write(buf.Bytes())
 | 
			
		||||
 | 
			
		||||
	buf.WriteTo(fh)
 | 
			
		||||
	fh.Close()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user