Skip to content

Commit

Permalink
Fixed User-Agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
catacraciun authored Oct 8, 2020
1 parent eda61ca commit 3d8e2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MangoPay/Libraries/RestTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d8e2ad

Please sign in to comment.