Improved check for invalid certificates

This commit is contained in:
Michael 2022-07-16 08:27:38 +00:00
parent 896fd3fc91
commit abe3fd7605
4 changed files with 25 additions and 41 deletions

View file

@ -167,6 +167,10 @@ class CurlResult implements ICanHandleHttpResponses
$this->isSuccess = false;
}
if (empty($this->returnCode) && empty($this->header) && empty($this->body)) {
$this->isSuccess = false;
}
if (!$this->isSuccess) {
Logger::debug('debug', ['info' => $this->info]);
}