Check POST requests for valid json header

validate that all POST requests with json body must have also have valid
json header: {"Content-Type": "application/json"}
This ensures a basic protection against CSRF

This closes #25

JIRA: COUCHDB-2775

Signed-off-by: Alexander Shorin <kxepal@apache.org>
2 files changed
tree: 798f73d6ebc53976ad30360d1b5e1cd591b982d9
  1. include/
  2. priv/
  3. src/
  4. test/
  5. .travis.yml
  6. LICENSE