From d8ad830564b5425cb7ff418dd85f8f1080d07b9c Mon Sep 17 00:00:00 2001 From: "JI,XIAOYONG" Date: Tue, 18 Jul 2023 15:25:25 +0800 Subject: [PATCH] Fix: Bug#126 flutter_ume_kit_dio_plus failed to parse request headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复问题:https://github.com/bytedance/flutter_ume/issues/126 --- kits/flutter_ume_kit_dio/lib/src/widgets/pluggable_state.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kits/flutter_ume_kit_dio/lib/src/widgets/pluggable_state.dart b/kits/flutter_ume_kit_dio/lib/src/widgets/pluggable_state.dart index 0c92a681..73623f5f 100644 --- a/kits/flutter_ume_kit_dio/lib/src/widgets/pluggable_state.dart +++ b/kits/flutter_ume_kit_dio/lib/src/widgets/pluggable_state.dart @@ -233,7 +233,7 @@ class _ResponseCardState extends State<_ResponseCard> { final Map> map = _request.headers.map( (key, value) => MapEntry( key, - value is Iterable ? value.map((v) => v.toString()).toList() : [value], + value is Iterable ? value.map((v) => v.toString()).toList() : [value.toString()], ), ); final Headers headers = Headers.fromMap(map);