|
|
@@ -146,6 +146,7 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
|
|
$proxy_type = Minz_Request::paramString('proxy_type');
|
|
|
$request_method = Minz_Request::paramString('curl_method');
|
|
|
$request_fields = Minz_Request::paramString('curl_fields', true);
|
|
|
+ $headers = Minz_Request::paramTextToArray('http_headers');
|
|
|
$opts = [];
|
|
|
if ($proxy_type !== '') {
|
|
|
$opts[CURLOPT_PROXY] = $proxy_address;
|
|
|
@@ -177,6 +178,10 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(!empty($headers)) {
|
|
|
+ $opts[CURLOPT_HTTPHEADER] = array_merge($headers, $opts[CURLOPT_HTTPHEADER] ?? []);
|
|
|
+ }
|
|
|
+
|
|
|
$feed->_attribute('curl_params', empty($opts) ? null : $opts);
|
|
|
|
|
|
$feed->_attribute('content_action', Minz_Request::paramString('content_action', true) ?: 'replace');
|