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";
}
{