Make "HTTPRequest::post" dynamic
This commit is contained in:
committed by
Hypolite Petovan
parent
2973ed6448
commit
8793096c16
@@ -26,7 +26,6 @@ use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\APContact;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
|
||||
/**
|
||||
* Implements HTTP Signatures per draft-cavage-http-signatures-07.
|
||||
@@ -298,7 +297,7 @@ class HTTPSignature
|
||||
|
||||
$headers[] = 'Content-Type: application/activity+json';
|
||||
|
||||
$postResult = HTTPRequest::post($target, $content, $headers);
|
||||
$postResult = DI::httpRequest()->post($target, $content, $headers);
|
||||
$return_code = $postResult->getReturnCode();
|
||||
|
||||
Logger::log('Transmit to ' . $target . ' returned ' . $return_code, Logger::DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user