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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user