Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] toString() in org.eclipse.jetty.server.Response class

Hi,

 

For debug printing we are using org.eclipse.jetty.server.Response.toString() function:

 

    public String toString()

    {

        return "HTTP/1.1 "+_status+" "+ (_reason==null?"":_reason) +System.getProperty("line.separator")+

        _connection.getResponseFields().toString();

    }

 

Response fields are printing in the loop with “\r\n” for each field. Server is running on UNIX and “\r” is not looking good.

Is it any way to avoid this?

 

Thanks,

Yana


Back to the top