Skip to content

Commit

Permalink
Update Request.php
Browse files Browse the repository at this point in the history
Remove curl_setopt(self::$handle, CURLOPT_POSTREDIR, 3);  in favor of the caller being well-behaved and setting this option as needed
  • Loading branch information
jskrivseth committed Apr 20, 2016
1 parent e9ea4db commit a3446f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Unirest/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ public static function send($method, $url, $body = null, $headers = array(), $us
if ($method !== Method::GET) {
if ($method === Method::POST) {
curl_setopt(self::$handle, CURLOPT_POST, true);
curl_setopt(self::$handle, CURLOPT_POSTREDIR, 3);
} else {
curl_setopt(self::$handle, CURLOPT_CUSTOMREQUEST, $method);
}
Expand Down

0 comments on commit a3446f6

Please sign in to comment.