From a3446f6d997cca7f76caa0b9f09c62d6db0a2c51 Mon Sep 17 00:00:00 2001 From: Jesse Skrivseth Date: Tue, 19 Apr 2016 23:05:11 -0600 Subject: [PATCH] Update Request.php Remove curl_setopt(self::$handle, CURLOPT_POSTREDIR, 3); in favor of the caller being well-behaved and setting this option as needed --- src/Unirest/Request.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Unirest/Request.php b/src/Unirest/Request.php index 5524caa..cc1836c 100755 --- a/src/Unirest/Request.php +++ b/src/Unirest/Request.php @@ -401,7 +401,6 @@ class Request 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); }