mirror of
https://github.com/friendica/friendica
synced 2025-05-01 19:44:23 +02:00
Curl Response Refactoring
- refactored Network::getCurl() - replaced every Network::getCur() execution with a Curl Response
This commit is contained in:
parent
7c73e8634c
commit
ffbc688797
9 changed files with 30 additions and 30 deletions
|
@ -208,10 +208,6 @@ class Network
|
|||
$curl_info = @curl_getinfo($ch);
|
||||
}
|
||||
|
||||
if (curl_errno($ch) !== CURLE_OK) {
|
||||
logger('error fetching ' . $url . ': ' . curl_error($ch), LOGGER_INFO);
|
||||
}
|
||||
|
||||
$curlResponse = new Curl($url, $s, $curl_info, curl_errno($ch), curl_error($ch));
|
||||
|
||||
if ($curlResponse->isRedirectUrl()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue