Skip to content

Commit

Permalink
Update InstasentClient.php
Browse files Browse the repository at this point in the history
Fix API with redirect 301.
  • Loading branch information
eclyptox authored Jul 24, 2020
1 parent 2dc6e22 commit 7c95e56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Instasent/Abstracts/InstasentClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ protected function execRequest($url, $httpMethod, $data)

curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

if ($httpMethod == 'POST') {
Expand Down

0 comments on commit 7c95e56

Please sign in to comment.