output multiline %headers as multiple headers of the same name
[perl/plp/.git] / lib / PLP / Functions.pm
index 90ff741453c213954362315a335d5579c1446515..f3621671470603b3f04f3dc086c57b22ca9ca09b 100644 (file)
@@ -75,7 +75,7 @@ sub EncodeURI (@) {
 
 sub AddCookie ($) {
        if ($PLP::Script::header{'Set-Cookie'}) {
-               $PLP::Script::header{'Set-Cookie'} .= "\nSet-Cookie: $_[0]";
+               $PLP::Script::header{'Set-Cookie'} .= "\n" . $_[0];
        } else {
                $PLP::Script::header{'Set-Cookie'} = $_[0];
        }