php-pm / php-pm-httpkernel

HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM
MIT License
246 stars 72 forks source link

Fix bad empty headers #159

Closed acasademont closed 5 years ago

acasademont commented 5 years ago

With guzzlehttp/psr7 recent changes (https://github.com/guzzle/psr7/pull/250/files#diff-5abca4d9d5693da46d10a54795b1192dR164) a header with an empty array is now not allowed. Therefore, if there are no cookies to be sent, we shouldn't even set the cookies header. Tests were currently failing if installing guzzlehttp/psr7 >= 1.6.1