Add support for "accept" header. #299