From 7fde6a44d6d6f7458786db19d42fa49199287323 Mon Sep 17 00:00:00 2001 From: tienvx Date: Wed, 30 Aug 2023 08:00:23 +0700 Subject: [PATCH] chore: Use different mime type on Windows --- .../multipart/consumer/tests/Service/HttpClientServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/multipart/consumer/tests/Service/HttpClientServiceTest.php b/example/multipart/consumer/tests/Service/HttpClientServiceTest.php index eeaebc11..0df7999d 100644 --- a/example/multipart/consumer/tests/Service/HttpClientServiceTest.php +++ b/example/multipart/consumer/tests/Service/HttpClientServiceTest.php @@ -35,7 +35,7 @@ public function testUpdateUserProfile() ]) ->setBody(new Multipart([ new Part($fullNameTempFile = $this->createTempFile($fullName), 'full_name', 'text/plain'), - new Part(__DIR__ . '/../_resource/image.jpg', 'profile_image', 'image/jpeg'), + new Part(__DIR__ . '/../_resource/image.jpg', 'profile_image', in_array(php_uname('m'), ['AMD64', 'arm64']) ? 'application/octet-stream' : 'image/jpeg'), new Part($personalNoteTempFile = $this->createTempFile($personalNote), 'personal_note', 'text/plain'), ]));