Added content type negotiation using headers