Skip to content

Commit

Permalink
fix(ProxySys): change getResponse wiht getInternalResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
LemuelPuglisi committed Sep 12, 2020
1 parent b418d98 commit 537cf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProxySys.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function scrape()
echo $this->config['DISPLAY']['SCRAPE'];
}
$crawler = $this->client->request('GET', $this->config['PROXY_URL']);
if ($this->client->getResponse()->getStatus() !== 200) {
if ($this->client->getInternalResponse()->getStatusCode() !== 200) {
if ($this->config['DISPLAY']['SET']) {
echo $this->config['DISPLAY']['SYS_FAULT'];
}
Expand Down

0 comments on commit 537cf0d

Please sign in to comment.