Skip to content

Commit ca8fe50

Browse files
fix: follow redirects in APISystemAPIVersionRead
This fixes an anticipated issue where v1 would not automatically follow GitHub redirects when the repo is moved.
1 parent 14232b7 commit ca8fe50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-API/files/etc/inc/api/models/APISystemAPIVersionRead.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class APISystemAPIVersionRead extends APIModel {
7373
# Variables
7474
$releases_file = "/usr/local/share/pfSense-pkg-API/releases.json";
7575
$releases = json_decode(file_get_contents($releases_file), true);
76-
$fetch_releases_cmd = "curl -s https://api.github.com/repos/jaredhendrickson13/pfsense-api/releases -m 10";
76+
$fetch_releases_cmd = "curl -sL https://api.github.com/repos/jaredhendrickson13/pfsense-api/releases -m 10";
7777

7878
# Check if our previous releases data is older than 120 seconds
7979
if ($releases["last_updated"] + 120 < time()) {

0 commit comments

Comments
 (0)