From 444ffef22b7cdd8453bdf193516f6dcf01a167eb Mon Sep 17 00:00:00 2001 From: Enguerrand ARMINJON <37028599+EArminjon@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:47:15 +0100 Subject: [PATCH] Update InterceptAjaxRequestJS.java --- .../plugin_scripts_js/InterceptAjaxRequestJS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/plugin_scripts_js/InterceptAjaxRequestJS.java b/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/plugin_scripts_js/InterceptAjaxRequestJS.java index c36bf256..a675e337 100644 --- a/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/plugin_scripts_js/InterceptAjaxRequestJS.java +++ b/flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/plugin_scripts_js/InterceptAjaxRequestJS.java @@ -220,7 +220,7 @@ public class InterceptAjaxRequestJS { " data = new Uint8Array(result.data);" + " }" + " self.withCredentials = result.withCredentials;" + - " if (result.responseType != null) {" + + " if (result.responseType != null && result.isAsync) {" + " self.responseType = result.responseType;" + " };" + " for (var header in result.headers) {" +