Author: aparfonov
Date: 2010-06-29 09:01:48 -0400 (Tue, 29 Jun 2010)
New Revision: 2714
Modified:
ws/branches/2.1.x/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPResponse.java
Log:
EXOJCR-800: restore to previous revision
Modified:
ws/branches/2.1.x/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPResponse.java
===================================================================
---
ws/branches/2.1.x/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPResponse.java 2010-06-29
12:43:00 UTC (rev 2713)
+++
ws/branches/2.1.x/exo.ws.commons/src/main/java/org/exoplatform/common/http/client/HTTPResponse.java 2010-06-29
13:01:48 UTC (rev 2714)
@@ -128,11 +128,14 @@
this.timeout = timeout;
try
{
- this.OriginalURI = new URI(orig.getRequestURI());
+ int qp = orig.getRequestURI().indexOf('?');
+ this.OriginalURI =
+ new URI(orig.getConnection().getProtocol(), null,
orig.getConnection().getHost(), orig.getConnection()
+ .getPort(), qp < 0 ? orig.getRequestURI() :
orig.getRequestURI().substring(0, qp), qp < 0 ? null : orig
+ .getRequestURI().substring(qp + 1), null);
}
catch (ParseException pe)
{
- log.error("Error while create OriginalURI from request URI sring
representation: " + pe.getMessage());
}
this.method = orig.getMethod();
}
Show replies by date