Curl Response Refactoring
- refactored Network::post() - replaced every Network::post() execution with the new Curl container
This commit is contained in:
parent
2dec8895a9
commit
7c73e8634c
10 changed files with 24 additions and 25 deletions
|
@ -316,9 +316,9 @@ function subscribe_to_hub($url, array $importer, array $contact, $hubmode = 'sub
|
|||
DBA::update('contact', ['hub-verify' => $verify_token], ['id' => $contact['id']]);
|
||||
}
|
||||
|
||||
Network::post($url, $params);
|
||||
$postResult = Network::post($url, $params);
|
||||
|
||||
logger('subscribe_to_hub: returns: ' . Network::getCurl()->getCode(), LOGGER_DEBUG);
|
||||
logger('subscribe_to_hub: returns: ' . $postResult->getReturnCode(), LOGGER_DEBUG);
|
||||
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue