donejs / done-serve

DoneJS development server
https://www.npmjs.com/package/done-serve
MIT License
7 stars 5 forks source link

Avoid compression NDJSON responses #123

Closed matthewp closed 6 years ago

matthewp commented 6 years ago

When proxying to an API that supports NDJSON, we are currently compressing the data. This usually results in the entire response being buffered and then compressed as one chunk, which is not what you want when working with NDJON data.

We should avoid compressing NDJSON. We can filter out responses with a content-type of application/x-ndjson. Spec: https://github.com/ndjson/ndjson-spec

matthewp commented 6 years ago

Fixed in major