New helper function fetch_header()

This commit is contained in:
Steffen Lange 2023-02-04 13:12:59 +01:00
parent 2e7927c057
commit b110ec8539
5 changed files with 13 additions and 11 deletions

View file

@ -5,7 +5,7 @@ class Zoom extends PatchBase {
parent::__construct('Zoom Video Communications', 'Zoom', 'https://zoom.us/download');
}
function check() : bool {
if ($this->fetch('https://zoom.us/client/latest/ZoomInstaller.exe', false))
if ($this->fetch_header('https://zoom.us/client/latest/ZoomInstaller.exe'))
return $this->parse('/\/prod\/([\d\.]+)\/ZoomInstaller\.exe/');
return false;
}