commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient RedirectServlet.java
Date Tue, 04 Mar 2003 18:43:26 GMT
olegk       2003/03/04 10:43:26

  Modified:    httpclient/src/test-webapp/src/org/apache/commons/httpclient
                        RedirectServlet.java
  Log:
  Bug #16416 'Using deprecated class javax.servlet.http.HttpUtils' fix
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.8       +4 -5      jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RedirectServlet.java
  
  Index: RedirectServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test-webapp/src/org/apache/commons/httpclient/RedirectServlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RedirectServlet.java	25 Feb 2003 23:33:44 -0000	1.7
  +++ RedirectServlet.java	4 Mar 2003 18:43:26 -0000	1.8
  @@ -68,13 +68,12 @@
   import javax.servlet.ServletException;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
  -import javax.servlet.http.HttpUtils;
   
   public class RedirectServlet extends MultiMethodServlet {
       protected void genericService(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
           String to = null;
           if(null != request.getParameter("loop")) {
  -            to = HttpUtils.getRequestURL(request).append("?").append(request.getQueryString()).toString();
  +            to = request.getRequestURL().append("?").append(request.getQueryString()).toString();
           } else {
               to = request.getParameter("to");
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message