Add unit tests for PNG and WebP

Also correct Content-Type when transcoding WebP.
This commit is contained in:
Andrew Gaul
2017-01-19 11:19:30 -08:00
parent 389077e0fa
commit 49bceae2df
2 changed files with 32 additions and 1 deletions

View File

@ -16,6 +16,7 @@ func (t *Png) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, header
}
if SupportsWebP(headers) {
w.Header().Set("Content-Type", "image/webp")
options := webp.Options{
Lossless: true,
}