Skip to content

Commit

Permalink
Merge pull request #5 from iZucken/2.2.1
Browse files Browse the repository at this point in the history
Fixed response codes;
  • Loading branch information
iZucken authored May 8, 2020
2 parents cc18469 + 1f6e0ef commit cea8c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/RequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ protected function execute()
throw new TransportException($this->httpStatusCode,
"Curl said: $errorMessage", $errorNumber);
}
if ($this->httpStatusCode === '204') {
if ($this->httpStatusCode === 204) {
return null;
} elseif (empty($response)) {
throw new TransportException($this->httpStatusCode,
"Unexpected empty response body", 0);
}
if ($this->httpStatusCode === '200') {
if ($this->httpStatusCode === 200) {
return $this->assertiveJsonDecode($response);
}
$errorData = $this->assertiveJsonDecode($response);
Expand Down

0 comments on commit cea8c10

Please sign in to comment.