Closed fdummert closed 7 years ago
What Jetty version ?
all, including master. Btw, if this will be fixed, would it be possible to back port it to 9.2.x as well?
So it's been fixed in 9.2.x onwards, but unlikely we will be making other 9.2.x releases. If you need it for CometD, be aware that CometD can be built against Jetty 9.4.x, see https://docs.cometd.org/current/reference/#_performing_the_build.
Hi together,
jetty-client fails to parse a response with following header:
Content-Type: application/soap+xml; charset="utf-8"
According to RFC2045, section 5.1, using quotes for the charset is explicitly allowed, but in following lines, the String
"utf-8"
, including double quotes, is finally being passed tonew String(getContent(), encoding)
(see this line in HttpContentResponse), resulting in a UnsupportedCharsetException.Greg has fixed this 15 years ago for the server side (see https://developer.jboss.org/thread/36081), somehow jetty-client has been forgotten. Funny that nobody came across it since then :-)
Best Regards, Florian