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
This commit is contained in:
Jesse Skrivseth
2016-04-19 23:05:11 -06:00
parent e9ea4dbee2
commit a3446f6d99

View File

@@ -401,7 +401,6 @@ class Request
if ($method !== Method::GET) { if ($method !== Method::GET) {
if ($method === Method::POST) { if ($method === Method::POST) {
curl_setopt(self::$handle, CURLOPT_POST, true); curl_setopt(self::$handle, CURLOPT_POST, true);
curl_setopt(self::$handle, CURLOPT_POSTREDIR, 3);
} else { } else {
curl_setopt(self::$handle, CURLOPT_CUSTOMREQUEST, $method); curl_setopt(self::$handle, CURLOPT_CUSTOMREQUEST, $method);
} }