diff --git a/lib/api/api.dart b/lib/api/api.dart index d119640a..70631a14 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -258,6 +258,9 @@ class _Files { }); }); return await _api.request("PROPFIND", path, + header: { + if (depth != null) "Depth": depth.toString(), + }, body: builder.buildDocument().toXmlString()); } catch (e) { _log.severe("[propfind] Failed while propfind", e);