Added a check to leave an explicitly set Content-Type header for POST requests