Bugfix for formatting response to allow multiple Set-Cookie headers