Skip to content

Commit

Permalink
Ensure API Client's response variable is nulled before each API call
Browse files Browse the repository at this point in the history
  • Loading branch information
tfountain committed Nov 4, 2014
1 parent a9251bf commit 11a0efa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TrafficManagement/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ protected function apiRequest(Request $request)
);
}

$this->lastResponse = null;
$this->lastHttpResponse = $httpClient->dispatch($request);
if ($this->lastHttpResponse->isSuccess()) {
$json = json_decode($this->lastHttpResponse->getBody());
Expand Down

0 comments on commit 11a0efa

Please sign in to comment.