We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d75105 commit 0b4e33bCopy full SHA for 0b4e33b
lib/AnyEvent/HTTP/Server/Req.pm
@@ -346,6 +346,15 @@ use Digest::SHA1 'sha1';
346
$h->{'content-type'} = 'text/html; charset=utf-8';
347
}
348
my $nh = delete $h->{NotHandled};
349
+
350
+ # set multiple cookies
351
+ if(ref $h->{'set-cookie'} eq 'ARRAY') {
352
+ my $cookies = delete $h->{'set-cookie'};
353
354
+ #set-cookie is not in @hdr
355
+ push(@bad, "Set-Cookie: ".$_.$LF) for(@{$cookies});
356
+ }
357
358
for (keys %$h) {
359
if (exists $hdr{lc $_}) { $good[ $hdri{lc $_} ] = $hdr{ lc $_ }.": ".$h->{$_}.$LF; }
360
else {
0 commit comments