Changeset 426

Show
Ignore:
Timestamp:
07/07/2005 09:18:53 AM (3 years ago)
Author:
jan
Message:

added test for duplicate output headers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.3.x/tests/LightyTest.pm

    r394 r426  
    152152                                if ($line =~ /^([^:]+):\s*(.+)$/) { 
    153153                                        (my $h = $1) =~ tr/[A-Z]/[a-z]/; 
     154 
     155                                        if (defined $resp_hdr{$h}) { 
     156                                                diag(sprintf("header %s is duplicated: %s and %s\n", 
     157                                                             $h, $resp_hdr{$h}, $2)); 
     158                                                return -1;       
     159                                        } 
    154160 
    155161                                        $resp_hdr{$h} = $2;