Skip to content

Commit ebae3ab

Browse files
author
Michael Babker
committed
Relax cURL requirement, things should work OK with all JHttp adapters
1 parent b013b85 commit ebae3ab

File tree

1 file changed

+1
-9
lines changed
  • administrator/components/com_patchtester/PatchTester/Model

1 file changed

+1
-9
lines changed

administrator/components/com_patchtester/PatchTester/Model/PullModel.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,7 @@ public function apply($id)
161161
$options->set('userAgent', 'JPatchTester/2.0');
162162
$options->set('timeout', 120);
163163

164-
// Make sure we can use the cURL driver
165-
$driver = \JHttpFactory::getAvailableDriver($options, 'curl');
166-
167-
if (!($driver instanceof \JHttpTransportCurl))
168-
{
169-
throw new \RuntimeException('Cannot use the PHP cURL adapter in this environment, cannot use patchtester', 500);
170-
}
171-
172-
$transport = new \JHttp($options, $driver);
164+
$transport = \JHttpFactory::getHttp($options);
173165

174166
try
175167
{

0 commit comments

Comments
 (0)