Skip to content

Commit bfe2079

Browse files
committed
fix for throwing exceptions in the preprocess
1 parent f0f5540 commit bfe2079

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Http/HttpTrait.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ public function run(bool $emulate = false): bool
5858
$this->processor = [$this, 'main'];
5959
}
6060

61-
$continue = $this->prepare()
62-
&& $response->getStatus() == 200
63-
&& $this->process();
61+
$continue = $this->prepare();
62+
if ($continue && $response->getStatus() == 200) {
63+
$continue = $this->process();
64+
}
6465

6566
if (!$continue) {
6667
return false;

0 commit comments

Comments
 (0)