From 818ad62fbe60de480fe6ab604023549c59d01c82 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 15 Apr 2022 12:03:48 +0100 Subject: [PATCH] iOS: Fixes #6375: iOS and Dropbox synchronisation not working on iOS 15 --- packages/lib/file-api-driver-dropbox.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/lib/file-api-driver-dropbox.js b/packages/lib/file-api-driver-dropbox.js index 977df1ebe4..ad3c14afdb 100644 --- a/packages/lib/file-api-driver-dropbox.js +++ b/packages/lib/file-api-driver-dropbox.js @@ -124,8 +124,15 @@ class FileApiDriverDropbox { if (!options.responseFormat) options.responseFormat = 'text'; try { + // IMPORTANT: + // + // We cannot use POST here, because iOS (as of version 14?) doesn't + // support POST requests with an empty body: + // + // https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-1017-quot-cannot-parse-response-quot/td-p/589595 + const response = await this.api().exec( - 'POST', + 'GET', 'files/download', null, {