Skip to content

Commit

Permalink
Make sure we follow redirects.
Browse files Browse the repository at this point in the history
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
ifokkema committed Jul 3, 2024
1 parent f4d5b10 commit 456a3fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/class/variant_validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
Expand Down Expand Up @@ -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.
}
Expand Down

0 comments on commit 456a3fc

Please sign in to comment.