Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
505100bdd7
commit
13a91e63aa
38 changed files with 94 additions and 94 deletions
|
|
@ -305,7 +305,7 @@ class HTTPSignature
|
|||
|
||||
$headers['Content-Type'] = 'application/activity+json';
|
||||
|
||||
$postResult = DI::httpRequest()->post($target, $content, $headers);
|
||||
$postResult = DI::httpClient()->post($target, $content, $headers);
|
||||
$return_code = $postResult->getReturnCode();
|
||||
|
||||
Logger::log('Transmit to ' . $target . ' returned ' . $return_code, Logger::DEBUG);
|
||||
|
|
@ -453,9 +453,9 @@ class HTTPSignature
|
|||
$curl_opts[HTTPClientOptions::HEADERS] = $header;
|
||||
|
||||
if (!empty($opts['nobody'])) {
|
||||
$curlResult = DI::httpRequest()->head($request, $curl_opts);
|
||||
$curlResult = DI::httpClient()->head($request, $curl_opts);
|
||||
} else {
|
||||
$curlResult = DI::httpRequest()->get($request, $curl_opts);
|
||||
$curlResult = DI::httpClient()->get($request, $curl_opts);
|
||||
}
|
||||
$return_code = $curlResult->getReturnCode();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue