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); }