Fixup HTTP headers for httpClient requests

This commit is contained in:
Philipp
2021-08-24 14:17:42 +02:00
parent c7f54d83ce
commit 2356221aba
12 changed files with 36 additions and 33 deletions

View File

@@ -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'])) {