File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,6 @@ public function getAddress(): Address
57
57
58
58
public function getBodyAsString (): string
59
59
{
60
- return '< ' .$ this ->address ->toString ().'> ' ;
60
+ return '< ' .$ this ->address ->getEncodedAddress ().'> ' ;
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -346,4 +346,12 @@ public function testSetHeaderParameterNotParameterized()
346
346
$ this ->expectException (\LogicException::class);
347
347
$ headers ->setHeaderParameter ('Content-Disposition ' , 'name ' , 'foo ' );
348
348
}
349
+
350
+ public function testPathHeaderHasNoName ()
351
+ {
352
+ $ headers = new Headers ();
353
+
354
+ $ headers ->addPathHeader ('Return-Path ' , new Address ('some@path ' , 'any ignored name ' ));
355
+ $ this ->assertSame ('<some@path> ' , $ headers ->get ('Return-Path ' )->getBodyAsString ());
356
+ }
349
357
}
You can’t perform that action at this time.
0 commit comments