FreeFileSync: fake user agent
This commit is contained in:
parent
8606cdadf0
commit
e863aec0bd
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class FreeFileSync extends PatchBase {
|
||||||
parent::__construct('Zenju', 'FreeFileSync', 'https://freefilesync.org/download.php');
|
parent::__construct('Zenju', 'FreeFileSync', 'https://freefilesync.org/download.php');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://api.freefilesync.org/latest_version'))
|
if ($this->fetch('https://api.freefilesync.org/latest_version', array('CURLOPT_USERAGENT' => 'FFS-Update-Check')))
|
||||||
return $this->parse('/([\d\.]+)/');
|
return $this->parse('/([\d\.]+)/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue