0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

fix minor go fmt and go vet issues

This commit is contained in:
Will Norris 2019-03-22 08:05:59 +00:00
parent 7d53c5100d
commit 4a6b8653b6
2 changed files with 2 additions and 2 deletions

View file

@ -202,7 +202,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) {
// keys will be copied.
func copyHeader(dst, src http.Header, keys ...string) {
if len(keys) == 0 {
for k, _ := range src {
for k := range src {
keys = append(keys, k)
}
}

View file

@ -105,7 +105,7 @@ func Transform(img []byte, opt Options) ([]byte, error) {
}
case "tiff":
m = transformImage(m, opt)
err = tiff.Encode(buf, m, &tiff.Options{tiff.Deflate, true})
err = tiff.Encode(buf, m, &tiff.Options{Compression: tiff.Deflate, Predictor: true})
if err != nil {
return nil, err
}