[master] add check on content type in POST requests