From 4e47efe111b6ca4eb5d562d28a92a07a663e0e67 Mon Sep 17 00:00:00 2001 From: Michael Kao Date: Tue, 28 Sep 2021 12:02:24 +0200 Subject: [PATCH] Adds missing body to URLRequest mapping. --- ios/Classes/Types/URLRequest.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Classes/Types/URLRequest.swift b/ios/Classes/Types/URLRequest.swift index 336ea693..efaf3e3c 100644 --- a/ios/Classes/Types/URLRequest.swift +++ b/ios/Classes/Types/URLRequest.swift @@ -63,6 +63,7 @@ extension URLRequest { "url": url?.absoluteString, "method": httpMethod, "headers": allHTTPHeaderFields, + "body": httpBody.map(FlutterStandardTypedData.init(bytes:)), "iosAllowsCellularAccess": allowsCellularAccess, "iosAllowsConstrainedNetworkAccess": iosAllowsConstrainedNetworkAccess, "iosAllowsExpensiveNetworkAccess": iosAllowsExpensiveNetworkAccess,