hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: [PATCH] deprecated HttpState#isAuthenticationPreemptive no longer has any effect
Date Wed, 14 Jan 2004 15:55:05 GMT
Yes, it's a hack, but that is what I was thinking as well.  Works for  
me.

Mike

On Jan 14, 2004, at 10:05 AM, Kalnichevski, Oleg wrote:

> Mike, I can't think of anything better than this hack. Any better  
> ideas?
>
>
> Index: java/org/apache/commons/httpclient/HttpMethodDirector.java
> ===================================================================
> RCS file:  
> /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/ 
> commons/httpclient/HttpMethodDirector.java,v
> retrieving revision 1.13
> diff -u -r1.13 HttpMethodDirector.java
> --- java/org/apache/commons/httpclient/HttpMethodDirector.java	12 Jan  
> 2004 23:03:12 -0000	1.13
> +++ java/org/apache/commons/httpclient/HttpMethodDirector.java	14 Jan  
> 2004 14:58:50 -0000
> @@ -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-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:  
> commons-httpclient-dev-help@jakarta.apache.org
>


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


Mime
View raw message