mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
fix(sync): enable HEAD fallback in WebDAV getFileMeta
- Enable the HEAD request fallback functionality that was previously commented out - This provides an alternative method to get file metadata when PROPFIND fails - Fixes unused parameter and method warnings
This commit is contained in:
parent
dc9aea3714
commit
ed2abe93fd
1 changed files with 3 additions and 3 deletions
|
|
@ -54,9 +54,9 @@ export class WebdavApi {
|
|||
}
|
||||
|
||||
// If PROPFIND fails or returns no data, try HEAD request as fallback
|
||||
// if (useGetFallback) {
|
||||
// return await this._getFileMetaViaHead(fullPath);
|
||||
// }
|
||||
if (useGetFallback) {
|
||||
return await this._getFileMetaViaHead(fullPath);
|
||||
}
|
||||
|
||||
throw new RemoteFileNotFoundAPIError(path);
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue