tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpResponseBase.java
Date Thu, 14 Sep 2000 00:26:14 GMT
craigmcc    00/09/13 17:26:14

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
  Log:
  Make HttpServletResponse.sendRedirect() send a descriptive message (Moved
  Temporarily) along with the status code, rather than the URL of the
  location to which the redirect points.
  
  Submitted by: Bill Forbes <bill_forbes@urscorp.com>
  PR: BugRat Bug Report #106
  
  Revision  Changes    Path
  1.8       +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HttpResponseBase.java	2000/09/14 00:18:46	1.7
  +++ HttpResponseBase.java	2000/09/14 00:26:13	1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.7 2000/09/14 00:18:46 craigmcc Exp $
  - * $Revision: 1.7 $
  - * $Date: 2000/09/14 00:18:46 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.8 2000/09/14 00:26:13 craigmcc Exp $
  + * $Revision: 1.8 $
  + * $Date: 2000/09/14 00:26:13 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.7 $ $Date: 2000/09/14 00:18:46 $
  + * @version $Revision: 1.8 $ $Date: 2000/09/14 00:26:13 $
    */
   
   public class HttpResponseBase
  @@ -922,7 +922,7 @@
   
   	// Generate a temporary redirect to the specified location
   	String absolute = toAbsolute(location);
  -	setStatus(SC_MOVED_TEMPORARILY, absolute);
  +	setStatus(SC_MOVED_TEMPORARILY);
   	setHeader("Location", absolute);
           setContentLength(0);
   	flushBuffer();
  
  
  

Mime
View raw message