zendframework / zend-mime

Mime component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 37 forks source link

Fix header type inconsistency #36

Closed sunspikes closed 5 years ago

sunspikes commented 5 years ago

There is a small inconsistency the way Decode:: splitMessage() behaves, the headers variable referenced in splitMessage is supposed to of type Headers always, but when splitMessage is called with an empty content headers will become an empty array. This breaks client libraries for example: https://github.com/zendframework/zend-mail/blob/master/src/Message.php#L566

michalbundyra commented 5 years ago

Thanks, @sunspikes!