Skip to content

Commit 8dedbe7

Browse files
committed
Don't encode non-ascii responses
1 parent e7ad886 commit 8dedbe7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bootstrap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ while (true) {
200200
curl_exec($ch);
201201
curl_close($ch);
202202

203-
if (preg_match('/[^\x00-\x7f]/', $response['body'])) {
204-
$response['body'] = base64_encode($response_body);
205-
$response['isBase64Encoded'] = TRUE;
206-
}
207-
208203
$ch = curl_init("http://$AWS_LAMBDA_RUNTIME_API/2018-06-01/runtime/invocation/$invocation_id/response");
209204

210205
$response_json = json_encode($response);

0 commit comments

Comments
 (0)