[exo-jcr-commits] exo-jcr SVN: r2009 - ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Mar 4 10:11:28 EST 2010
Author: max_shaposhnik
Date: 2010-03-04 10:11:28 -0500 (Thu, 04 Mar 2010)
New Revision: 2009
Modified:
ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java
Log:
EXOJCR-154 connection & header fixes
Modified: ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java
===================================================================
--- ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java 2010-03-04 10:57:56 UTC (rev 2008)
+++ ws/trunk/exo.ws.rest.ext/src/main/java/org/exoplatform/services/rest/ext/proxy/BaseConnector.java 2010-03-04 15:11:28 UTC (rev 2009)
@@ -106,7 +106,6 @@
LOG.error("Received Error: " + resp.getReasonLine());
LOG.error(resp.getText());
}
- conn.stop();
return resp;
}
@@ -133,7 +132,6 @@
LOG.error("Received Error: " + resp.getReasonLine());
LOG.error(resp.getText());
}
- conn.stop();
return resp;
}
@@ -157,7 +155,6 @@
LOG.error("Received Error: " + resp.getReasonLine());
LOG.error(resp.getText());
}
- conn.stop();
return resp;
}
@@ -173,6 +170,7 @@
{
NVPair pair = null;
String headerName = (String)en.nextElement();
+ if (!headerName.startsWith("Host")) { //Do not need to send host
for (Enumeration<String> en2 = httpRequest.getHeaders(headerName); en2.hasMoreElements();)
{
pair = new NVPair(headerName, en2.nextElement());
@@ -180,6 +178,7 @@
hds.add(pair);
this.headers = new NVPair[hds.size()];
this.headers = hds.toArray(headers);
+ }
}
}
More information about the exo-jcr-commits
mailing list