diff options
| author | 2025-05-05 18:55:43 +0200 | |
|---|---|---|
| committer | 2025-05-05 18:55:43 +0200 | |
| commit | b2f80ad00a19e408685618668625ab11227cf18f (patch) | |
| tree | 8b7656c86cc2999e1458c9dbe99b16850e0b6720 /app/Controllers/feedController.php | |
| parent | 2063e445af611a54cb7a4094033cdccac2dcb60f (diff) | |
Fix duplicate HTTP header for POST (#7556)
Using POST with JSON would add `Content-Type: application/json` again and again everytime the feed's settings were saved
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index e64607277..9769a6df0 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -215,6 +215,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $headers = array_filter(array_map('trim', $headers)); if (!empty($headers)) { $opts[CURLOPT_HTTPHEADER] = array_merge($headers, $opts[CURLOPT_HTTPHEADER] ?? []); + $opts[CURLOPT_HTTPHEADER] = array_unique($opts[CURLOPT_HTTPHEADER]); } $attributes = [ |
