diff --git a/lib/Bitbucket/API/Http/Client.php b/lib/Bitbucket/API/Http/Client.php index 58ce91a..8c67def 100644 --- a/lib/Bitbucket/API/Http/Client.php +++ b/lib/Bitbucket/API/Http/Client.php @@ -33,7 +33,7 @@ class Client implements ClientInterface 'api_versions' => array('1.0', '2.0'), // supported versions 'format' => 'json', 'formats' => array('json', 'xml'), // supported response formats - 'user_agent' => 'bitbucket-api-php/0.5.1 (https://bitbucket.org/gentlero/bitbucket-api)', + 'user_agent' => 'bitbucket-api-php/0.5.2 (https://bitbucket.org/gentlero/bitbucket-api)', 'timeout' => 10, 'verify_peer' => false ); diff --git a/test/Bitbucket/Tests/API/Http/ClientTest.php b/test/Bitbucket/Tests/API/Http/ClientTest.php index 98dac53..cf74452 100644 --- a/test/Bitbucket/Tests/API/Http/ClientTest.php +++ b/test/Bitbucket/Tests/API/Http/ClientTest.php @@ -91,7 +91,10 @@ public function testShouldDoPostRequestWithContentAndReturnResponseInstance() $this->assertInstanceOf('\Buzz\Message\MessageInterface', $response); $this->assertEquals('1=2', $client->getLastRequest()->getContent()); - $this->assertEquals( array('User-Agent: tests', '4'), $client->getLastRequest()->getHeaders() ); + $this->assertEquals( + array('User-Agent: tests', '4', 'Content-Type: application/x-www-form-urlencoded'), + $client->getLastRequest()->getHeaders() + ); } public function testShouldDoPutRequestAndReturnResponseInstance()