Closed BenjaminGlusa closed 3 years ago
Hey,
This is solved in @polka/send@next
: https://github.com/lukeed/polka/blob/next/packages/send/index.js#L41-L46
(For the next
version, @polka/send-type
has been renamed to @polka/send
)
You can actually use that package today without updating anything else to its next
variant.
Thank you for the report though!
Affected version "@polka/send-type": "0.5.2", "polka": "0.5.2"
Steps to reproduce:
const app = polka().listen(8085, err => { if (err) throw err; console.log(
> Running on localhost: 8085
); });app.get('/test', (req, res) => { send(res, 204); });