mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Do not append / to message url
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@267 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
9f6b0d6de6
commit
74636cef0b
@ -189,7 +189,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
DavGatewayTray.error(message.toString());
|
||||
sendErr(HttpStatus.SC_BAD_REQUEST, message.toString());
|
||||
} else if ("user".equals(paths[1])) {
|
||||
sendRedirect(headers, "/principals/users/" + session.getEmail() + "/");
|
||||
sendRedirect(headers, "/principals/users/" + session.getEmail());
|
||||
// principal namespace
|
||||
} else if ("PROPFIND".equals(command) && "principals".equals(paths[1]) && paths.length == 4 &&
|
||||
"users".equals(paths[2])) {
|
||||
@ -491,7 +491,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
buffer.append(" <D:prop>\n");
|
||||
if (request.hasProperty("principal-collection-set")) {
|
||||
buffer.append(" <D:principal-collection-set>\n");
|
||||
buffer.append(" <D:href>/principals/users/</D:href>\n");
|
||||
buffer.append(" <D:href>/principals/users/").append(session.getEmail()).append("</D:href>\n");
|
||||
buffer.append(" </D:principal-collection-set>");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user