Improved how the ACCEPT header is parsed, and fixed an error with the formatting of the responses.