From f8c35e9e22d4346ffa4c86449e7de17cd8982e0b Mon Sep 17 00:00:00 2001 From: Alexis L Date: Fri, 18 Nov 2022 15:41:39 +0100 Subject: [PATCH] fix: Change default type for response --- lib/datadome.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/datadome.dart b/lib/datadome.dart index a17607b..a0e0a37 100644 --- a/lib/datadome.dart +++ b/lib/datadome.dart @@ -111,9 +111,9 @@ class DataDome { Map responseHeaders = new Map.from(response?['headers'] ?? ""); http.Response httpResponse = http.Response.bytes( - response?['data'] ?? "", - response?['code'] ?? "", - headers: responseHeaders + response?['data'] ?? [], + response?['code'] ?? [], + headers: responseHeaders ); return httpResponse;