return correct content type in web API calls