New helper function fetch_header()
This commit is contained in:
parent
2e7927c057
commit
b110ec8539
5 changed files with 13 additions and 11 deletions
|
|
@ -5,7 +5,7 @@ class Scilab extends PatchBase {
|
|||
parent::__construct('ESI Group', 'Scilab', 'https://www.scilab.org/download');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.scilab.org/latest', false))
|
||||
if ($this->fetch_header('https://www.scilab.org/latest'))
|
||||
return $this->parse('/\/download\/scilab-([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue