X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/b485fa6bb934e79d44a1be1b5e41e31f4e7129b1..4b924b1351d4a8ea42652533081a3ea62df110e4:/lib/PLP.pm?ds=sidebyside diff --git a/lib/PLP.pm b/lib/PLP.pm index 42866dc..37d95b1 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -94,7 +94,10 @@ sub handler { sub sendheaders () { $PLP::sentheaders ||= [ caller 1 ? (caller 1)[1, 2] : (caller)[1, 2] ]; print STDOUT "Content-Type: text/plain\n\n" if $PLP::DEBUG & 2; - print STDOUT map("$_: $PLP::Script::header{$_}\n", keys %PLP::Script::header), "\n"; + while (my ($header, $values) = each %PLP::Script::header) { + print STDOUT "$header: $_\n" for split /\n/, $values; + } + print STDOUT "\n"; } {