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
|
|
@ -302,10 +302,9 @@ class HTTPSignature
|
|||
|
||||
$headers[] = 'Content-Type: application/activity+json';
|
||||
|
||||
Network::post($target, $content, $headers);
|
||||
$return_code = Network::getCurl()->getCode();
|
||||
$postResult = Network::post($target, $content, $headers);
|
||||
|
||||
logger('Transmit to ' . $target . ' returned ' . $return_code);
|
||||
logger('Transmit to ' . $target . ' returned ' . $postResult->getReturnCode());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue