Skip to content

Commit 78f8cf3

Browse files
Corrigida validação de status http
1 parent 54b37a5 commit 78f8cf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ClienteGenerico.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ public function getInfo()
147147
*/
148148
public function getResponse()
149149
{
150-
$http_code = $this->getInfo();
150+
$status = $this->getInfo()['http_code'];
151151

152-
if($http_code === 500 || $http_code === 404 || !$this->xml) {
152+
if($status === 500 || $status === 404 || $status === 403 || !$this->xml) {
153153
return null;
154154
}
155155

0 commit comments

Comments
 (0)