Skip to content

Commit 70e39e4

Browse files
committedMar 18, 2015
fix post requests
1 parent 11ab0f8 commit 70e39e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/BazaarApiClient.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ public function request(){
6767
$response = null;
6868
try {
6969
/** @var FutureResponse $response */
70-
$response = $this->client->get($this->request->getUri(), $this->requestOptions);
70+
if($this->request->isPost()){
71+
$response = $this->client->post($this->request->getUri(), $this->requestOptions);
72+
}else {
73+
$response = $this->client->get($this->request->getUri(), $this->requestOptions);
74+
}
7175
} catch (ClientException $e) {
7276

7377
$networkException = new NetworkErrorException();

0 commit comments

Comments
 (0)
Please sign in to comment.