mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-12 22:18:11 -05:00
Fix: when redirected to another SSO server, use full URL instead of path
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@405 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
eb1187e5ea
commit
87fdfb4936
@ -146,9 +146,9 @@ public class ExchangeSession {
|
||||
return DavGatewayHttpClientFacade.getHttpStatus(url) == HttpStatus.SC_UNAUTHORIZED;
|
||||
}
|
||||
|
||||
protected String getAbsolutePath(HttpMethod method, String path) {
|
||||
protected String getAbsolutePath(HttpMethod method, String path) throws URIException {
|
||||
if (path == null) {
|
||||
return method.getPath();
|
||||
return method.getURI().getURI();
|
||||
} else if (path.startsWith("/")) {
|
||||
return path;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user