Fix JSON and XML request visitors to set Content-type before body
Removed guessing of request body content type by request path. Reverts part of 863998bb.