From 176dc5d8c87182eb214a6016cc00eb8cf243f73e Mon Sep 17 00:00:00 2001 From: shen <409724179@qq.com> Date: Fri, 1 Nov 2024 09:22:14 +0000 Subject: [PATCH] =?UTF-8?q?update=20ohos/src/main/ets/components/FlutterDo?= =?UTF-8?q?wnloaderPlugin.ets.=20=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E9=9C=80=E8=A6=81=E9=89=B4=E6=9D=83=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shen <409724179@qq.com> --- ohos/src/main/ets/components/FlutterDownloaderPlugin.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ohos/src/main/ets/components/FlutterDownloaderPlugin.ets b/ohos/src/main/ets/components/FlutterDownloaderPlugin.ets index 7c09bf9..4dcd784 100644 --- a/ohos/src/main/ets/components/FlutterDownloaderPlugin.ets +++ b/ohos/src/main/ets/components/FlutterDownloaderPlugin.ets @@ -503,7 +503,8 @@ export class FlutterDownloaderPlugin implements FlutterPlugin, MethodCallHandler saveas: tempFile, metered: allowCellular, overwrite: true, - gauge: showNotification + gauge: showNotification, + headers:JSON.parse(headers) }; const downloadTask = await request.agent.create(this.context!, requestConfig); -- Gitee