Closed GoogleCodeExporter closed 8 years ago
Possible reason is Content-type is not set by the XML serving app-server /
web-server. Save the response (.rcs) and attach to the issue for debugging.
Original comment by subwiz
on 2 May 2013 at 11:30
.rcs file attached. Content type was set to */*
Original comment by yan0p...@gmail.com
on 2 May 2013 at 1:18
Attachments:
As expected, the response Content-type is set to: */*
Configure your web-server / app-server to set Content-type as application/xml.
This should resolve the issue.
I can also think of an option to force-display text when content-type is
unknown. But that is new development and I might have to schedule that a little
later.
Original comment by subwiz
on 2 May 2013 at 2:02
I experience the same problem of getting a "hex-view" displayed even if the
header field "Content-Type" is set in the response sent by the server.
The problem always occurs when the content-type contains a parameter other than
"charset", e.g.
"application/vnd.mnet.staticwebspaces+xml;version=1;charset=UTF-8". According
to the RFC2616 (http://tools.ietf.org/html/rfc2616#section-14.17) you may add
any paramter, what we use to support multiple versions of a format.
Our own vendor content-type works if I remove the version-parameter.
Original comment by csch...@googlemail.com
on 31 Oct 2013 at 10:54
Thanks for reporting. Will fix over the weekend.
Original comment by subwiz
on 31 Oct 2013 at 1:56
I fixed it quickly on my local computer. The problem is located in
\rest-client\restclient-lib\src\main\java\org\wiztools\restclient\util\HttpUtil.
java. The pattern to separate the content-type and charset does not support
other parameters. I attach my patch, unfortunately my code-formatter is
different than yours :-/
Maybe it helps you fixing it correctly.
Original comment by csch...@googlemail.com
on 31 Oct 2013 at 2:15
Attachments:
Thanks! This would definetly help!
Original comment by subwiz
on 31 Oct 2013 at 4:12
Applied the fix inspired by your patch. Thanks!
Original comment by subwiz
on 1 Nov 2013 at 7:19
Original issue reported on code.google.com by
yan0p...@gmail.com
on 30 Apr 2013 at 8:03