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:
parent
7d53c5100d
commit
4a6b8653b6
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue