mirror of
https://github.com/moparisthebest/davmail
synced 2024-08-13 16:53:51 -04:00
full debug trace on caldav
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@252 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
9f0981b294
commit
7b33fce14b
@ -157,6 +157,9 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
|
|
||||||
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
|
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
|
||||||
int depth = getDepth(headers);
|
int depth = getDepth(headers);
|
||||||
|
// full debug trace
|
||||||
|
DavGatewayTray.debug("command: " + command + " " + path + " Depth: " + depth + "\n" + body);
|
||||||
|
|
||||||
if ("OPTIONS".equals(command)) {
|
if ("OPTIONS".equals(command)) {
|
||||||
sendOptions();
|
sendOptions();
|
||||||
} else if ("PROPFIND".equals(command)
|
} else if ("PROPFIND".equals(command)
|
||||||
@ -417,7 +420,6 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
buffer.append(" <D:status>HTTP/1.1 200 OK</D:status>\n");
|
buffer.append(" <D:status>HTTP/1.1 200 OK</D:status>\n");
|
||||||
buffer.append(" </D:propstat>\n");
|
buffer.append(" </D:propstat>\n");
|
||||||
buffer.append(" </D:response>\n");
|
buffer.append(" </D:response>\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -472,6 +474,8 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
}
|
}
|
||||||
sendClient("");
|
sendClient("");
|
||||||
if (content != null && content.length() > 0) {
|
if (content != null && content.length() > 0) {
|
||||||
|
// full debug trace
|
||||||
|
DavGatewayTray.debug("> "+content);
|
||||||
sendClient(content.getBytes("UTF-8"));
|
sendClient(content.getBytes("UTF-8"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user