Use HTTPRequestOptions constants for HTTPClient::post()

This commit is contained in:
Philipp
2021-08-25 21:12:45 +02:00
parent e9902401a5
commit aad7bac686
4 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -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);