8000 Fix Resend transport headers bug (#53687) · tibbsa/laravel-framework@1d32031 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d32031

Browse files
authored
Fix Resend transport headers bug (laravel#53687)
1 parent ae1ce8d commit 1d32031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Mail/Transport/ResendTransport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ protected function doSend(SentMessage $message): void
7070

7171
if ($email->getAttachments()) {
7272
foreach ($email->getAttachments() as $attachment) {
73-
$headers = $attachment->getPreparedHeaders();
73+
$attachmentHeaders = $attachment->getPreparedHeaders();
7474

75-
$filename = $headers->getHeaderParameter('Content-Disposition', 'filename');
75+
$filename = $attachmentHeaders->getHeaderParameter('Content-Disposition', 'filename');
7676

7777
$item = [
78-
'content_type' => $headers->get('Content-Type')->getBody(),
78+
'content_type' => $attachmentHeaders->get('Content-Type')->getBody(),
7979
'content' => str_replace("\r\n", '', $attachment->bodyToString()),
8080
'filename' => $filename,
8181
];

0 commit comments

Comments
 (0)
0