gas: add ability to determine acceptable content type