kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 116 forks source link

API should close connection by default #303

Open artgo opened 5 years ago

artgo commented 5 years ago

To close connection we require our customers to explicitly do it via "Connection" header like so:

curl -i http://localhost:3000/api/override-default-heade  -H "Connection: close"

This is not a standard expected behaviour and creates unnecessary additional load on the servers

artgo commented 5 years ago

@kahmali FYI

vadkasevas commented 4 months ago

https://github.com/kahmali/meteor-restivus/blob/b95f879c0ebc52e0a7cd85e91fbc8ba5118026eb/lib/iron-router-error-to-response.js#L24