Skip to content

Commit

Permalink
Feature/user agent (#89)
Browse files Browse the repository at this point in the history
* change 'user-agent' to 'User-Agent'
* update version number from '1.0.0' to '1.1.3'
  • Loading branch information
arubacao authored and mheap committed Nov 22, 2017
1 parent c9554dd commit 7f3a98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
class Client
{
const VERSION = '1.0.0';
const VERSION = '1.1.3';

const BASE_API = 'https://api.nexmo.com';
const BASE_REST = 'https://rest.nexmo.com';
Expand Down Expand Up @@ -344,7 +344,7 @@ public function send(\Psr\Http\Message\RequestInterface $request)
}

// Set the header. Build by joining all the parts we have with a space
$request = $request->withHeader('user-agent', implode(" ", $userAgent));
$request = $request->withHeader('User-Agent', implode(" ", $userAgent));

$response = $this->client->sendRequest($request);
return $response;
Expand Down

0 comments on commit 7f3a98b

Please sign in to comment.