Add unit tests for PNG and WebP
Also correct Content-Type when transcoding WebP.
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user