Skip to content

Commit

Permalink
fix: followlocation is required
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell committed Dec 16, 2022
1 parent fe24828 commit 195259f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whmcs/modules/registrars/krystal/API.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public function call($route, $method, $url_params = [], $body = [], $options = [

// Set options
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);

// Set headers
$headers = [];
$headers[] = "X-HTTP-Method-Override: {$method}";
Expand Down Expand Up @@ -119,4 +120,3 @@ public function call($route, $method, $url_params = [], $body = [], $options = [
return $response;
}
}

0 comments on commit 195259f

Please sign in to comment.