Hello, I am using jetty 5.1.10, and I seem to have a problem with the
sendError method of HttpServletResponse, as it encodes the error message (for
example, replacing spaces with plus). Debugging with the sources I found that
happens here in HttpResponse.class :
public void setStatus(int code,String message)
{
setStatus(code);
Integer code_integer=TypeUtil.newInteger(code);
if (message == null)
{
message = (String)__statusMsg.get(code_integer);
if (message==null)
message=""+code;
setReason(message);
}
else
setReason(UrlEncoded.encodeString(message)); <--- HERE
}
As that code has not been touch in 7 months (according to CVS) maybe I am the
only one with the problem. What I wonder is what is the encode for. Does a
RFC specify so?
Also, may it be that messages kept in the variable __statusMsg are not being
encoded?
Right now to solve this issue, I am using the setStatus() method (from
HttpServletResponse), although it is deprecated.
I would like some clarification of why it is being encoded.
Thank you very much,
Luciano Leggieri
_______________________________________________
jetty-discuss mailing list
jetty-discuss@...
https://lists.sourceforge.net/lists/listinfo/jetty-discuss