This commit is contained in:
Arjen Poutsma
2008-07-22 11:11:31 +00:00
parent 2c0d6bf16a
commit 7e3203203d

View File

@@ -213,6 +213,7 @@ public class CommonsHttpMessageSender extends AbstractHttpWebServiceMessageSende
public void afterPropertiesSet() throws Exception {
if (getCredentials() != null) {
getHttpClient().getState().setCredentials(getAuthScope(), getCredentials());
getHttpClient().getParams().setAuthenticationPreemptive(true);
}
}