make post requests use content-type set in the header if content type specified. instead of always using application/x-www-form-urlencoded