diff --git a/lib/Service/CallService.php b/lib/Service/CallService.php index 68e4003..e40bc95 100644 --- a/lib/Service/CallService.php +++ b/lib/Service/CallService.php @@ -266,6 +266,7 @@ public function call( 'remoteIp' => $response->getHeaderLine('X-Real-IP') ?: $response->getHeaderLine('X-Forwarded-For') ?: null, 'headers' => $response->getHeaders(), 'body' => mb_check_encoding(value: $body, encoding: 'UTF-8') !== false ? $body : base64_encode($body), + 'encoding' => mb_check_encoding(value: $body, encoding: 'UTF-8') !== false ? 'UTF-8' : 'base64', ] ];