Only set content type for post requests.