1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Android: Fixes #4439: Add option to disable TLS validation and allow self-signed certificates for WebDAV/NextCloud (#4742)

This commit is contained in:
Roman Musin
2021-04-25 09:50:52 +01:00
committed by GitHub
parent 3235f58f5a
commit a4854fcde8
17 changed files with 186 additions and 9 deletions

View File

@@ -369,6 +369,7 @@ class WebDavApi {
fetchOptions.method = method;
if (options.path) fetchOptions.path = options.path;
if (body) fetchOptions.body = body;
fetchOptions.ignoreTlsErrors = this.options_.ignoreTlsErrors();
const url = `${this.baseUrl()}/${path}`;
if (shim.httpAgent(url)) fetchOptions.agent = shim.httpAgent(url);