commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
Date Sun, 01 Sep 2002 02:24:45 GMT
dion        2002/08/31 19:24:45

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  Applied patch from Ryan Lubke <Ryan.Lubke@Sun.COM> to fix redirect logic check
  
  Revision  Changes    Path
  1.49      +5 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- HttpMethodBase.java	1 Sep 2002 02:22:44 -0000	1.48
  +++ HttpMethodBase.java	1 Sep 2002 02:24:45 -0000	1.49
  @@ -768,7 +768,7 @@
                       
                       //get the location header to find out where to redirect to
                       Header locationHeader = getResponseHeader("location");
  -                    if (locationHeader != null) {
  +                    if (locationHeader == null) {
                           // got a redirect response, but no location header
                           log.error("Received redirect response " + statusCode + " but no
location header");
                           return statusCode;
  
  
  

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


Mime
View raw message