Details
Description
When the Content-Type header is processed by ContentExchange::onResponseHeader, it doesn't reconise it. Therefore, the charset part of the Content-Type is not read and the default encoding is not changed in attribute _encoding. As a result, any response in a charset that is not utf-8 gets incorrectly handled when using getResponseContent().
Some test shown that ContentExchange line 114, instead of
int header = HttpHeaders.CACHE.getOrdinal(value);
should be
int header = HttpHeaders.CACHE.getOrdinal(name);
This bug was already fixed for jetty-6.1.20 as part of bugzilla item https://bugs.eclipse.org/bugs/show_bug.cgi?id=286535
Jan