Always use specified content type in APIRequestFactory

If `content_type` is specified in the `APIRequestFactory`, always
include it in the request, even if data is empty.
Merge pull request #1608 from dbrgn/test_client_contenttype

Always use specified content type in APIRequestFactory