Skip to content

Commit

Permalink
Merge pull request #10 from wilsonge/patch-1
Browse files Browse the repository at this point in the history
Prioritise Curl (see joomla/joomla-cms#4105)
  • Loading branch information
mbabker committed Sep 24, 2014
2 parents 109bd68 + d9fdedc commit 902f9d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/HttpFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ public static function getHttpTransports()
// Keep alphabetical order across all environments
sort($names);


// If curl is available set it to the first position
$key = array_search('Curl', $names);

if ($key)
{
unset($names[$key]);
array_unshift($names, 'Curl');
}

return $names;
}
}

0 comments on commit 902f9d0

Please sign in to comment.