Fix to use accept header for content negotiation.