From cbd8afdb577a99afecee2bbc0c10f51eb4267006 Mon Sep 17 00:00:00 2001 From: White <83274201+warmbook@users.noreply.github.com> Date: Fri, 15 Nov 2024 05:24:47 +0000 Subject: [PATCH] baseURI for curlrequest and image/jpg for jpg mime --- app/Config/Mimes.php | 1 + system/Config/Services.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Config/Mimes.php b/app/Config/Mimes.php index 7722444abe7b..7104561357e0 100644 --- a/app/Config/Mimes.php +++ b/app/Config/Mimes.php @@ -199,6 +199,7 @@ class Mimes ], 'gif' => 'image/gif', 'jpg' => [ + 'image/jpg', 'image/jpeg', 'image/pjpeg', ], diff --git a/system/Config/Services.php b/system/Config/Services.php index c0d5fcc392d2..61026de4292c 100644 --- a/system/Config/Services.php +++ b/system/Config/Services.php @@ -211,7 +211,7 @@ public static function curlrequest(array $options = [], ?ResponseInterface $resp return new CURLRequest( $config, - new URI($options['base_uri'] ?? null), + new URI($options['baseURI'] ?? null), $response, $options );