olegk       2003/06/20 09:43:19

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  Bug fix #20942 (Request with DIGEST authentication fails when redirected)
  
  Contributed by Oleg Kalnichevski
  Reviewed by Mike Becke
  
  Revision  Changes    Path
  1.155     +7 -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.154
  retrieving revision 1.155
  diff -u -r1.154 -r1.155
  --- HttpMethodBase.java       20 Jun 2003 16:30:58 -0000      1.154
  +++ HttpMethodBase.java       20 Jun 2003 16:43:18 -0000      1.155
  @@ -1152,7 +1152,9 @@
           }
   
           //invalidate the list of authentication attempts
  -        this.realms.clear(); 
  +        this.realms.clear();
  +        //remove exisitng authentication headers
  +        removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP); 
           //update the current location with the redirect location.
           //avoiding use of URL.getPath() and URL.getQuery() to keep
           //jdk1.2 comliance.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to