Skip to content

Commit e02af4d

Browse files
committed
fix(WebDAV): Add Depth header to PROPFIND for getting filesize
fixes #1928 Signed-off-by: Marcel Klehr <[email protected]>
1 parent ae97f30 commit e02af4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/adapters/WebDav.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ export default class WebDavAdapter extends CachingAdapter {
465465
res = await fetch(url,{
466466
method: 'PROPFIND',
467467
headers: {
468-
Authorization: 'Basic ' + authString
468+
Authorization: 'Basic ' + authString,
469+
Depth: '0',
469470
},
470471
cache: 'no-store',
471472
credentials: 'omit',
@@ -505,6 +506,7 @@ export default class WebDavAdapter extends CachingAdapter {
505506
method: 'PROPFIND',
506507
headers: {
507508
Authorization: 'Basic ' + authString,
509+
Depth: '0',
508510
Pragma: 'no-cache',
509511
'Cache-Control': 'no-cache'
510512
},

0 commit comments

Comments
 (0)