Skip to content

Commit 961b24a

Browse files
committed
Merge branch 'release/0.5.2'
2 parents 23343af + fc5bbcf commit 961b24a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/Bitbucket/API/Http/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Client implements ClientInterface
3333
'api_versions' => array('1.0', '2.0'), // supported versions
3434
'format' => 'json',
3535
'formats' => array('json', 'xml'), // supported response formats
36-
'user_agent' => 'bitbucket-api-php/0.5.1 (https://bitbucket.org/gentlero/bitbucket-api)',
36+
'user_agent' => 'bitbucket-api-php/0.5.2 (https://bitbucket.org/gentlero/bitbucket-api)',
3737
'timeout' => 10,
3838
'verify_peer' => false
3939
);

test/Bitbucket/Tests/API/Http/ClientTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ public function testShouldDoPostRequestWithContentAndReturnResponseInstance()
9191

9292
$this->assertInstanceOf('\Buzz\Message\MessageInterface', $response);
9393
$this->assertEquals('1=2', $client->getLastRequest()->getContent());
94-
$this->assertEquals( array('User-Agent: tests', '4'), $client->getLastRequest()->getHeaders() );
94+
$this->assertEquals(
95+
array('User-Agent: tests', '4', 'Content-Type: application/x-www-form-urlencoded'),
96+
$client->getLastRequest()->getHeaders()
97+
);
9598
}
9699

97100
public function testShouldDoPutRequestAndReturnResponseInstance()

0 commit comments

Comments
 (0)