Fixes #6446 - Forbidding non-json POST/PUT requests in v2