mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:04:22 +02:00
Use HTTPRequestOptions constants for HTTPClient::post()
This commit is contained in:
parent
e9902401a5
commit
aad7bac686
4 changed files with 9 additions and 5 deletions
|
@ -29,6 +29,7 @@ use Friendica\Model\APContact;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\CurlResult;
|
||||
use Friendica\Network\HTTPRequestOptions;
|
||||
use Friendica\Network\IHTTPResult;
|
||||
|
||||
/**
|
||||
|
@ -449,7 +450,7 @@ class HTTPSignature
|
|||
}
|
||||
|
||||
$curl_opts = $opts;
|
||||
$curl_opts['header'] = $header;
|
||||
$curl_opts[HTTPRequestOptions::HEADERS] = $header;
|
||||
|
||||
if (!empty($opts['nobody'])) {
|
||||
$curlResult = DI::httpRequest()->head($request, $curl_opts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue