mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-16 12:24:46 -04:00
Fix regression cURL HTTP headers (#7403)
* Fix regression cURL HTTP headers fix https://github.com/FreshRSS/FreshRSS/issues/6712#issuecomment-2697961491 We would sometimes wrongly override the default HTTP headers of SimplePie https://github.com/FreshRSS/simplepie/pull/33 https://github.com/simplepie/simplepie/pull/912 * Sync SimplePie https://github.com/FreshRSS/simplepie/pull/33
This commit is contained in:
committed by
GitHub
parent
9641f2a5a3
commit
ecdb63c335
@@ -194,8 +194,8 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
||||
}
|
||||
}
|
||||
|
||||
$headers = array_filter(array_map('trim', $headers));
|
||||
if (!empty($headers)) {
|
||||
$headers = array_filter(array_map('trim', $headers));
|
||||
$opts[CURLOPT_HTTPHEADER] = array_merge($headers, $opts[CURLOPT_HTTPHEADER] ?? []);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user