Files
StevenandGitHub 0b563e86de fix: image optimization content-type (#46219)
Upstream images can have any arbitrary `content-type` header so this PR
normalizes the value before checking it.
2023-02-21 18:00:14 -08:00

7 lines
236 B
JavaScript

export default function handler(_req, res) {
res.setHeader('Content-Type', 'application/svg+xml')
res.end(
`<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><text x="20" y="30">hi</text></svg>`
)
}