Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Prefer: return=minimal support #605
Adding this header allows the client to request that only Non-Essential
The idea is to remove all headers that a non-browser client would not need.
There are two options
curl -v --header "X-Couch-Exclude-Headers: Non-Essential" 'http://dev:5984/_all_dbs
GitHub issue number
This PR will be the number
forgot to add, the structure of the change looks good to me. My comments are mainly about configurability. I like the use of a custom header to modify the response, rather than a query parameter. The recommendation these days is not to add
Pretty good overall. This is a lot simpler than I expected going into the review so that makes me quite happy. Mostly a few nits other than the case sensitive matching for header filtering.
thanks for pursuing this for so long. I have some comments to address.
I think it would be safer if we identified which headers couchdb sends that are strictly optional, I can't be sure I've listed all the ones I think need to be added back in, though I did read through the standard response header list as part of this review.