You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/01/14 19:59:27 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodDirector.java

olegk       2004/01/14 10:59:27

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodDirector.java
  Log:
  Fixed the problem with deprecated HttpState#isAuthenticationPreemptive no longer having any effect
  
  Contributed by Oleg Kalnichevski
  Reviewed by Michael Becke
  
  Revision  Changes    Path
  1.14      +6 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodDirector.java
  
  Index: HttpMethodDirector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodDirector.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HttpMethodDirector.java	12 Jan 2004 23:03:12 -0000	1.13
  +++ HttpMethodDirector.java	14 Jan 2004 18:59:27 -0000	1.14
  @@ -195,8 +195,9 @@
                           this.params.getConnectionManagerTimeout() 
                       );
                       this.conn.setLocked(true);
  -                    if (this.params.isAuthenticationPreemptive()) {
  -
  +                    if (this.params.isAuthenticationPreemptive()
  +                     || this.state.isAuthenticationPreemptive()) 
  +                    {
                           LOG.debug("Preemptively sending default basic credentials");
                           this.authState = AUTH_PREEMPTIVE;
                           this.authScheme = AuthPolicy.getAuthScheme("basic");
  
  
  

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