Author: alessio.soldano(a)jboss.com
Date: 2009-09-16 13:11:18 -0400 (Wed, 16 Sep 2009)
New Revision: 10702
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
Log:
[JBWS-2763] Reuse header names
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2009-09-16
17:10:26 UTC (rev 10701)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2009-09-16
17:11:18 UTC (rev 10702)
@@ -166,7 +166,8 @@
while (i.hasNext())
{
MimeHeader header = (MimeHeader)i.next();
- Object currentValue = metadata.get(header.getName());
+ String hName = header.getName();
+ Object currentValue = metadata.get(hName);
/*
* Coalesce multiple headers into one
@@ -183,11 +184,11 @@
*/
if (currentValue != null)
{
- metadata.put(header.getName(), currentValue + "," +
header.getValue());
+ metadata.put(hName, currentValue + "," + header.getValue());
}
else
{
- metadata.put(header.getName(), header.getValue());
+ metadata.put(hName, header.getValue());
}
}
}
Show replies by date