1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

fix: use default headers in getContents() (#2927)

This commit is contained in:
Dag
2022-07-31 04:21:56 +02:00
committed by GitHub
parent cd0ca7f645
commit afcc38786e
2 changed files with 27 additions and 5 deletions

View File

@@ -12,9 +12,9 @@ $next = true;
while ($next) { /* Collect all contributors */
$headers = [
'Accept: application/json',
'Content-Type: application/json',
'User-Agent: RSS-Bridge'
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'User-Agent' => 'RSS-Bridge',
];
$result = _http_request($url, ['headers' => $headers]);