implement Accept-based Content-Type sniffer