Skip to content

Commit

Permalink
fix post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Mar 18, 2015
1 parent 11ab0f8 commit 70e39e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BazaarApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ public function request(){
$response = null;
try {
/** @var FutureResponse $response */
$response = $this->client->get($this->request->getUri(), $this->requestOptions);
if($this->request->isPost()){
$response = $this->client->post($this->request->getUri(), $this->requestOptions);
}else {
$response = $this->client->get($this->request->getUri(), $this->requestOptions);
}
} catch (ClientException $e) {

$networkException = new NetworkErrorException();
Expand Down

0 comments on commit 70e39e4

Please sign in to comment.