From 674153322f0c0f7646a0baab7eb6259de5aa4454 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Mon, 29 Apr 2024 17:07:06 -0700 Subject: [PATCH 1/2] Option issue in curl --- lib/Service/CurlService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php index a201e51b..4e226bab 100644 --- a/lib/Service/CurlService.php +++ b/lib/Service/CurlService.php @@ -95,7 +95,7 @@ class CurlService { CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers ); - $options = array_merge($options, $userOptions); + array_merge($options, $userOptions); switch ($method) { case 'GET': if ($params) { -- GitLab From 243d824ea6ce8c3a040f36b669502e9d50561567 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Tue, 30 Apr 2024 20:10:28 -0700 Subject: [PATCH 2/2] added loop --- lib/Service/CurlService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php index 4e226bab..2c6678da 100644 --- a/lib/Service/CurlService.php +++ b/lib/Service/CurlService.php @@ -95,7 +95,9 @@ class CurlService { CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers ); - array_merge($options, $userOptions); + foreach ($userOptions as $key => $value) { + $options[$key] = $value; + } switch ($method) { case 'GET': if ($params) { -- GitLab