Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 970bb63

Browse files
committed
[Mime] Fix compat with HTTP requests
1 parent 05fe56b commit 970bb63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mime/Part/TextPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getPreparedHeaders(): Headers
129129
if ($this->charset) {
130130
$headers->setHeaderParameter('Content-Type', 'charset', $this->charset);
131131
}
132-
if ($this->name) {
132+
if ($this->name && 'form-data' !== $this->disposition) {
133133
$headers->setHeaderParameter('Content-Type', 'name', $this->name);
134134
}
135135
$headers->setHeaderBody('Text', 'Content-Transfer-Encoding', $this->encoding);

0 commit comments

Comments
 (0)