mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 09:14:32 +02:00
Fixup HTTP headers for httpClient requests
This commit is contained in:
parent
c7f54d83ce
commit
2356221aba
12 changed files with 36 additions and 33 deletions
|
@ -103,7 +103,7 @@ class HTTPClient implements IHTTPClient
|
|||
$header = [];
|
||||
|
||||
if (!empty($opts['accept_content'])) {
|
||||
array_push($header, 'Accept: ' . $opts['accept_content']);
|
||||
$header['Accept'] = $opts['accept_content'];
|
||||
}
|
||||
|
||||
if (!empty($opts['header'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue