1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Caldav: allow infinity as Depth value

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1708 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-06-20 10:18:03 +00:00
parent 4709e15007
commit bfebee2b38

View File

@ -1396,7 +1396,9 @@ public class CaldavConnection extends AbstractConnection {
protected void buildDepth() {
String depthValue = headers.get("depth");
if (depthValue != null) {
if ("infinity".equalsIgnoreCase(depthValue)) {
depth = Integer.MAX_VALUE;
} else if (depthValue != null) {
try {
depth = Integer.valueOf(depthValue);
} catch (NumberFormatException e) {