diff --git a/app/executor.php b/app/executor.php index a38837bb19..bf99aea0db 100644 --- a/app/executor.php +++ b/app/executor.php @@ -283,8 +283,8 @@ App::post('/v1/runtimes') $endTime = \time(); $container = array_merge($container, [ 'status' => 'ready', - 'stdout' => \mb_strcut(\utf8_encode($stdout), 0, 1000000), // Limit to 1MB - 'stderr' => \mb_strcut(\utf8_encode($stderr), 0, 1000000), // Limit to 1MB + 'stdout' => \mb_strcut($stdout, 0, 1000000), // Limit to 1MB + 'stderr' => \mb_strcut($stderr, 0, 1000000), // Limit to 1MB 'startTime' => $startTime, 'endTime' => $endTime, 'duration' => $endTime - $startTime, @@ -722,4 +722,4 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo } }); -$http->start(); \ No newline at end of file +$http->start();