1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

Add comment

This commit is contained in:
Jakub Vrana
2025-03-29 16:25:35 +01:00
parent 6a3161cd49
commit eeb13253a8

View File

@@ -17,7 +17,7 @@ if (isset($_GET["elastic"])) {
*/
function rootQuery(string $path, ?array $content = null, string $method = 'GET') {
$file = @file_get_contents("$this->url/" . ltrim($path, '/'), false, stream_context_create(array(
//~ 'ssl' => array('verify_peer' => false),
//~ 'ssl' => array('verify_peer' => false), // Elasticsearch responses in over 4 s on https://localhost:9200 without this line for me
'http' => array(
'method' => $method,
'content' => $content !== null ? json_encode($content) : null,