File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/Symfony/Component/Mime Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ public function remove(string $name): void
201
201
202
202
public static function isUniqueHeader (string $ name ): bool
203
203
{
204
- return \in_array ($ name , self ::UNIQUE_HEADERS , true );
204
+ return \in_array (strtolower ( $ name) , self ::UNIQUE_HEADERS , true );
205
205
}
206
206
207
207
public function toString (): string
Original file line number Diff line number Diff line change @@ -212,6 +212,11 @@ public function testRemoveIsNotCaseSensitive()
212
212
$ this ->assertFalse ($ headers ->has ('Message-ID ' ));
213
213
}
214
214
215
+ public function testIsUniqueHeaderIsNotCaseSensitive ()
216
+ {
217
+ $ this ->assertTrue (Headers::isUniqueHeader ('From ' ));
218
+ }
219
+
215
220
public function testToStringJoinsHeadersTogether ()
216
221
{
217
222
$ headers = new Headers ();
You can’t perform that action at this time.
0 commit comments