curveball / core

The Curveball framework is a TypeScript framework for node.js with support for modern HTTP features.
https://curveballjs.org/
MIT License
525 stars 7 forks source link

Don't assume the content is application/json #212

Open evert opened 2 years ago

evert commented 2 years ago

By default curveball will set the response content-type to application/json.

Instead, it should not set any default and do a last-ditch effort to guess it at the very end of the middleware chain.