From 544d7811d733dcfdbc1409f54c537540ca02b614 Mon Sep 17 00:00:00 2001 From: giko45 Date: Sat, 27 Jun 2020 13:56:31 +0200 Subject: [PATCH] Update HttpTransport.php --- src/Transport/HttpTransport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Transport/HttpTransport.php b/src/Transport/HttpTransport.php index 44da08d..599ff5a 100644 --- a/src/Transport/HttpTransport.php +++ b/src/Transport/HttpTransport.php @@ -193,7 +193,8 @@ public function read(array $queries, int $concurrency = 5) : array $multipart = [ [ 'name' => 'query', - 'contents' => $query->getQuery().' FORMAT JSON', + 'contents' => $query->getQuery() . (strpos($query->getQuery(), ' FORMAT ') === FALSE ? ' FORMAT JSON' : ''), + ], ];