Skip to content

Commit

Permalink
chore: Use different mime type on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Aug 30, 2023
1 parent 6ef1785 commit 7fde6a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]));

Expand Down

0 comments on commit 7fde6a4

Please sign in to comment.