mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
iOS: Fixes #2153: Fix sync issue with Stackstorage
This commit is contained in:
parent
2b79926ff5
commit
3f00d8bb1b
@ -6,7 +6,7 @@ const URL = require('url-parse');
|
||||
const { _ } = require('./locale');
|
||||
const { rtrimSlashes } = require('./path-utils');
|
||||
const base64 = require('base-64');
|
||||
|
||||
const { ltrimSlashes } = require('./path-utils');
|
||||
|
||||
// Note that the d: namespace (the DAV namespace) is specific to Nextcloud. The RFC for example uses "D:" however
|
||||
// we make all the tags and attributes lowercase so we handle both the Nextcloud style and RFC. Hopefully other
|
||||
@ -378,7 +378,7 @@ class WebDavApi {
|
||||
if (options.path) fetchOptions.path = options.path;
|
||||
if (body) fetchOptions.body = body;
|
||||
fetchOptions.ignoreTlsErrors = this.options_.ignoreTlsErrors();
|
||||
const url = `${this.baseUrl()}/${path}`;
|
||||
const url = `${this.baseUrl()}/${ltrimSlashes(path)}`;
|
||||
|
||||
if (shim.httpAgent(url)) fetchOptions.agent = shim.httpAgent(url);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user