Commit c12a9a71 authored by Benjamin Chodoroff's avatar Benjamin Chodoroff

set correct content-type for reformatted images

parent b5cd8545
......@@ -305,11 +305,14 @@ export async function proxyHandler(ctx: KoaContext) {
break
case OutputFormat.JPEG:
image.jpeg({force: true})
contentType = 'image/jpeg'
break
case OutputFormat.PNG:
image.png({force: true})
contentType = 'image/png'
break
case OutputFormat.WEBP:
contentType = 'image/webp'
image.webp({force: true})
break
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment