Fix to return error straight away

This commit is contained in:
iliajie
2023-05-18 19:53:24 +03:00
parent cc15a65c47
commit 702fc7d584

View File

@@ -13079,7 +13079,7 @@ if (ref($h)) {
$rs{'response'} = $h->{'buffer'};
}
else {
$rs{'error'} = $h
return { 'error' => $h };
}
if (ref($h)) {
if ($h->{'buffer'} =~ /has\s+moved\s+<a\s+href=['"](.*?)['"]/mi) {