mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Upstream images can have any arbitrary `content-type` header so this PR normalizes the value before checking it.
7 lines
236 B
JavaScript
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>`
|
|
)
|
|
}
|