Browse Source

added test for duplicate output headers

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@426 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.15
Jan Kneschke 17 years ago
parent
commit
c57a23b886
  1. 6
      tests/LightyTest.pm

6
tests/LightyTest.pm

@ -152,6 +152,12 @@ sub handle_http {
if ($line =~ /^([^:]+):\s*(.+)$/) {
(my $h = $1) =~ tr/[A-Z]/[a-z]/;
if (defined $resp_hdr{$h}) {
diag(sprintf("header %s is duplicated: %s and %s\n",
$h, $resp_hdr{$h}, $2));
return -1;
}
$resp_hdr{$h} = $2;
} else {
return -1;

Loading…
Cancel
Save