chg: [internal] Disable unicode escaping for JSON

pull/7558/head
Jakub Onderka 2021-07-08 12:37:50 +02:00
parent eafc213324
commit f0dcc9f9ce
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ class RestResponseComponent extends Component
}
}
// Do not pretty print response for automatic tools
$flags = $this->isAutomaticTool() ? JSON_UNESCAPED_UNICODE : JSON_PRETTY_PRINT;
$flags = $this->isAutomaticTool() ? JSON_UNESCAPED_UNICODE : (JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
$response = json_encode($response, $flags);
} else {
if ($dumpSql) {