mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
digest ok
This commit is contained in:
parent
0d9da32b00
commit
085d8448d2
|
@ -45,6 +45,7 @@ if (VALID_REQURL) {
|
|||
method: options.method,
|
||||
body: options.data as string | ArrayBuffer,
|
||||
headers: transformedHeaders,
|
||||
throw: false,
|
||||
});
|
||||
|
||||
let contentType: string | undefined =
|
||||
|
@ -237,10 +238,12 @@ export class WrappedWebdavClient {
|
|||
|
||||
init = async () => {
|
||||
// init client if not inited
|
||||
if (this.client !== undefined) {
|
||||
return;
|
||||
}
|
||||
const headers = {
|
||||
"Cache-Control": "no-cache",
|
||||
};
|
||||
if (this.client === undefined) {
|
||||
if (
|
||||
this.webdavConfig.username !== "" &&
|
||||
this.webdavConfig.password !== ""
|
||||
|
@ -260,7 +263,6 @@ export class WrappedWebdavClient {
|
|||
headers: headers,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// check vault folder
|
||||
if (this.vaultFolderExists) {
|
||||
|
@ -581,7 +583,7 @@ export const checkConnectivity = async (
|
|||
}
|
||||
try {
|
||||
await client.init();
|
||||
const results = await getRemoteMeta(client, `/${client.remoteBaseDir}`);
|
||||
const results = await getRemoteMeta(client, `/${client.remoteBaseDir}/`);
|
||||
if (results === undefined) {
|
||||
const err = "results is undefined";
|
||||
log.error(err);
|
||||
|
|
Loading…
Reference in New Issue
Block a user