abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r432718 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java
Date Fri, 18 Aug 2006 20:43:35 GMT
Author: jmsnell
Date: Fri Aug 18 13:43:31 2006
New Revision: 432718

URL: http://svn.apache.org/viewvc?rev=432718&view=rev
Log:
Tell the commons client not to do its own authentication when the 
user sets the authorization header explicitly

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java?rev=432718&r1=432717&r2=432718&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/util/MethodHelper.java
Fri Aug 18 13:43:31 2006
@@ -152,6 +152,8 @@
     String cc = options.getCacheControl();
     if (cc != null && cc.length() != 0)
       method.setRequestHeader("Cache-Control", cc);
+    if (options.getAuthorization() != null)
+      method.setDoAuthentication(false);
   }
   
   public static final class ExtensionMethod 



Mime
View raw message