-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VV never used to redirect us, but now, it does. Reported it to VV, but also updated the code in case they keep it. See: openvar/variantValidator#628
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* LEIDEN OPEN VARIATION DATABASE (LOVD) | ||
* | ||
* Created : 2020-03-09 | ||
* Modified : 2024-01-25 | ||
* For LOVD : 3.0-30 | ||
* Modified : 2024-07-03 | ||
* For LOVD : 3.0-31 | ||
* | ||
* Copyright : 2004-2024 Leiden University Medical Center; http://www.LUMC.nl/ | ||
* Programmer : Ivo F.A.C. Fokkema <[email protected]> | ||
|
@@ -199,6 +199,7 @@ private function callVV ($sMethod, $aArgs = array()) | |
if (!$hCurl) { | ||
$hCurl = curl_init(); | ||
curl_setopt($hCurl, CURLOPT_RETURNTRANSFER, true); // Return the result as a string. | ||
curl_setopt($hCurl, CURLOPT_FOLLOWLOCATION, true); // Make sure we follow redirects. | ||
if (!empty($_SETT['system']['version'])) { | ||
curl_setopt($hCurl, CURLOPT_USERAGENT, 'LOVDv.' . $_SETT['system']['version']); // Return the result as a string. | ||
} | ||
|