From 7e2688fcb789c17a36f684bd453a7b3bd52629ad Mon Sep 17 00:00:00 2001 From: Allan Laal Date: Wed, 14 Dec 2016 17:07:34 +0200 Subject: [PATCH] FIX adding a transport method should prioritize that method before adding a Requests_Transport method with Requests::add_transport() had no effect to the actual transport method being used for the connection (if the user did not delete the Requests_Transport_cURL and Requests_Transport_fsockopen classes manually) --- library/Requests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Requests.php b/library/Requests.php index bb266189c..82a4a37b5 100644 --- a/library/Requests.php +++ b/library/Requests.php @@ -169,7 +169,7 @@ public static function add_transport($transport) { ); } - self::$transports = array_merge(self::$transports, array($transport)); + self::$transports = array_merge(array($transport), self::$transports); } /**