mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 11:42:23 -05:00
Some Exchange servers redirect to a different host for freebusy, use wide auth scope
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@781 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
6edbca54d4
commit
53ddf0ef49
@ -97,7 +97,8 @@ public final class DavGatewayHttpClientFacade {
|
||||
try {
|
||||
URI httpURI = new URI(url, true);
|
||||
hostConfig.setHost(httpURI);
|
||||
AuthScope authScope = new AuthScope(httpURI.getHost(), httpURI.getPort(), AuthScope.ANY_REALM);
|
||||
// some Exchange servers redirect to a different host for freebusy, use wide auth scope
|
||||
AuthScope authScope = new AuthScope(null, -1);
|
||||
httpClient.getState().setCredentials(authScope, new UsernamePasswordCredentials(userName, password));
|
||||
} catch (URIException e) {
|
||||
throw new DavMailException("LOG_INVALID_URL", url);
|
||||
|
Loading…
Reference in New Issue
Block a user