JETTY-1093
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@794 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
0d4b93e685
commit
01cb70fc54
|
@ -3,6 +3,7 @@ jetty-7.0.0.RC6-SNAPSHOT
|
|||
+ 288153 jetty-client resend doesn't reset exchange
|
||||
+ 288182 PUT request fails during retry
|
||||
+ JETTY-1090 resolve potential infinite loop with webdav listener
|
||||
+ JETTY-1093 Request.toString throws exception when size exceeds 4k
|
||||
|
||||
jetty-7.0.0.RC5 27 August 2009
|
||||
+ 286911 Clean out cache when recycling HTTP fields
|
||||
|
|
|
@ -1038,16 +1038,28 @@ public class HttpFields
|
|||
{
|
||||
try
|
||||
{
|
||||
ByteArrayBuffer buffer = new ByteArrayBuffer(4096);
|
||||
put(buffer);
|
||||
return BufferUtil.to8859_1_String(buffer);
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
for (int i = 0; i < _fields.size(); i++)
|
||||
{
|
||||
Field field = (Field) _fields.get(i);
|
||||
if (field != null && field._revision == _revision)
|
||||
{
|
||||
String tmp = field.getName();
|
||||
if (tmp != null) buffer.append(tmp);
|
||||
buffer.append(": ");
|
||||
tmp = field.getValue();
|
||||
if (tmp != null) buffer.append(tmp);
|
||||
buffer.append("\r\n");
|
||||
}
|
||||
}
|
||||
buffer.append("\r\n");
|
||||
return buffer.toString();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.warn(e);
|
||||
return e.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
Loading…
Reference in New Issue