Skip to content

Commit

Permalink
update request
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopazz committed Mar 5, 2021
1 parent e452ccc commit d1271a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private function send($url_path, $method, $json = null)
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_MAXREDIRS, 10);
curl_setopt($curl, CURLOPT_ENCODING, "");
curl_setopt($curl, CURLOPT_USERAGENT, "gateway/2.1");

if ($method == 'POST') {
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($curl, CURLOPT_POSTFIELDS, $json);
Expand Down

0 comments on commit d1271a7

Please sign in to comment.