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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Reply via email to