You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Glen Daniels <gd...@macromedia.com> on 2002/03/21 15:46:21 UTC
RE: cvs commit: xml-axis/java/src/org/apache/axis/transport/http
AxisServlet.java
Are you sure this works, Russell? We've gone back and forth on this one three times now. Clearly I should have put a big honking comment over this code (I think I might have the first time...) - when I tested this from remote hosts, req.getRequestURL() returned "http://localhost...." instead of HttpUtils.getRequestURL()'s correct "http://my.real.name....".
Unfortunately there is no real way to test this against your own machine.
--Glen
> -----Original Message-----
> From: butek@apache.org [mailto:butek@apache.org]
> Sent: Thursday, March 21, 2002 9:13 AM
> To: xml-axis-cvs@apache.org
> Subject: cvs commit: xml-axis/java/src/org/apache/axis/transport/http
> AxisServlet.java
>
>
> butek 02/03/21 06:13:18
>
> Modified: java/src/org/apache/axis/transport/http
> AxisServlet.java
> Log:
> Remove deprecation warning.
>
> Revision Changes Path
> 1.89 +1 -2
> xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
>
> Index: AxisServlet.java
> ===================================================================
> RCS file:
> /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/Axi
> sServlet.java,v
> retrieving revision 1.88
> retrieving revision 1.89
> diff -u -r1.88 -r1.89
> --- AxisServlet.java 8 Mar 2002 16:32:04 -0000 1.88
> +++ AxisServlet.java 21 Mar 2002 14:13:17 -0000 1.89
> @@ -80,7 +80,6 @@
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> import javax.servlet.http.HttpSession;
> -import javax.servlet.http.HttpUtils;
> import java.io.ByteArrayInputStream;
> import java.io.File;
> import java.io.IOException;
> @@ -256,7 +255,7 @@
>
> try {
>
> - String url =
> HttpUtils.getRequestURL(req).toString();
> + String url = req.getRequestURL().toString();
>
>
> msgContext.setProperty(MessageContext.TRANS_URL, url);
>
>
>
>
>