From d343315245593a3b4e4a4579995117c159fd74e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 29 Aug 2016 11:29:50 +0200 Subject: [PATCH] Set User-Agent directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/Util.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/Util.php b/libraries/Util.php index 0769faae7d..cfb2f7ef37 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -4961,7 +4961,8 @@ class Util 'method' => $method, 'request_fulluri' => true, 'timeout' => $connection_timeout, - 'header' => "Accept: */*\nUser-Agent: phpMyAdmin", + 'user_agent' => 'phpMyAdmin', + 'header' => "Accept: */*", ) ); if ($header) {