From 3d8e2adbaf610412766aa7a6068797644ac8f818 Mon Sep 17 00:00:00 2001 From: catacraciun Date: Thu, 8 Oct 2020 15:44:06 +0300 Subject: [PATCH] Fixed User-Agent header --- MangoPay/Libraries/RestTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MangoPay/Libraries/RestTool.php b/MangoPay/Libraries/RestTool.php index fecf7f91..0cac4937 100644 --- a/MangoPay/Libraries/RestTool.php +++ b/MangoPay/Libraries/RestTool.php @@ -327,7 +327,7 @@ private function GetHttpHeaders($idempotencyKey = null) array_push($this->_requestHttpHeaders, self::$_JSON_HEADER); // Add User-Agent Header - array_push($this->_requestHttpHeaders, 'MangoPay V2 SDK PHP ' . self::VERSION); + array_push($this->_requestHttpHeaders, 'User-Agent: MangoPay V2 SDK PHP ' . self::VERSION); // Authentication http header if ($this->_authRequired) { $authHlp = new AuthenticationHelper($this->_root);