Skip to content

Commit

Permalink
Merge branch 'release/0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
vimishor committed Jul 9, 2014
2 parents 23343af + fc5bbcf commit 961b24a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Bitbucket/API/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
5 changes: 4 additions & 1 deletion test/Bitbucket/Tests/API/Http/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 961b24a

Please sign in to comment.