mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Remove 'headers' option occurrences and add a warning if used.
This commit is contained in:
parent
c19f1a83ce
commit
a74d88c4ee
4 changed files with 13 additions and 12 deletions
|
@ -141,6 +141,7 @@ class HTTPRequest implements IHTTPRequest
|
|||
curl_setopt($ch, CURLOPT_ENCODING, '');
|
||||
|
||||
if (!empty($opts['headers'])) {
|
||||
$this->logger->warning('Wrong option \'headers\' used.');
|
||||
@curl_setopt($ch, CURLOPT_HTTPHEADER, $opts['headers']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue