You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by az...@apache.org on 2006/06/20 15:20:45 UTC
svn commit: r415635 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Author: azeez
Date: Tue Jun 20 06:20:45 2006
New Revision: 415635
URL: http://svn.apache.org/viewvc?rev=415635&view=rev
Log:
Added a small Null check
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=415635&r1=415634&r2=415635&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java Tue Jun 20 06:20:45 2006
@@ -333,7 +333,9 @@
msgContext.setServerSide(true);
String requestURI = req.getRequestURI();
- requestURI = requestURI.replaceFirst("rest", SERVICE_PATH);
+ if (requestURI.indexOf("rest") != -1) {
+ requestURI = requestURI.replaceFirst("rest", SERVICE_PATH);
+ }
msgContext.setTo(new EndpointReference(requestURI));
msgContext.setProperty(Constants.OUT_TRANSPORT_INFO,
new ServletBasedOutTransportInfo(resp));
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org