ebernhardson/fastcgi — pull request #1 by wagnert (2014-04-18 14:54:02+00:00)
Title: Bugfix for formatting response to allow multiple Set-Cookie headers

Hi,

we're actually working on a multithreaded, PHP based web server and where looking for a appropriate Fast-CGI client implementation.

While working with your library i faced the problem, that multiple Set-Cookie headers that may returned from applications like Wordpress are ignored, because you add them to an associative array and override each Set-Cookie header with the next one.

I've refactored your formatResponse() method so that it supports multiple headers with the same name (but only one Status header), what should be possible.

Regards
Tim