From 8825788f53bc4a1fa90301768908166482d7172c Mon Sep 17 00:00:00 2001 From: willckoan <119916943+willckoan@users.noreply.github.com> Date: Thu, 23 Nov 2023 20:48:11 +1300 Subject: [PATCH] fix(mixins): fix type issue in request_handling type assignment (#165) --- lib/src/mixins/request_handling.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/mixins/request_handling.dart b/lib/src/mixins/request_handling.dart index 329a659..32625eb 100644 --- a/lib/src/mixins/request_handling.dart +++ b/lib/src/mixins/request_handling.dart @@ -29,7 +29,7 @@ mixin RequestHandling on Recording { final data = await dio.transformer.transformRequest(options); List bytes; if (options.requestEncoder != null) { - bytes = options.requestEncoder!(data, options); + bytes = await options.requestEncoder!(data, options); } else { bytes = utf8.encode(data); }