1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32: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:
mguessan 2008-12-30 12:46:57 +00:00
parent 9f6b0d6de6
commit 74636cef0b

View File

@ -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>");
}