~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy

« back to all changes in this revision

Viewing changes to t/apache/content_length_header.t

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2006-03-24 02:48:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060324024844-73oxqkcj2jmlmh2t
Tags: 2.0.2-2build1
Fake sync to bring in new upstream bugfixes, UVF exception by mdz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        my $uri = $location;
44
44
        my $res = $method->($uri);
45
45
 
46
 
        my $cl      = have_min_apache_version(2.1) ? undef : 0;
47
 
        my $head_cl = have_min_apache_version(2.1) ? $cl : undef;
48
 
           
 
46
        my $cl      = 0;
 
47
        my $head_cl = undef;
 
48
        
49
49
        ok t_cmp $res->code, 200, "$method $uri code";
50
50
        ok t_cmp ($res->header('Content-Length'),
51
51
                  $method eq 'GET' ? $cl : $head_cl,
64
64
        my $uri = "$location?set_content_length";
65
65
        my $res = $method->($uri);
66
66
 
67
 
        my $cl      = have_min_apache_version(2.1) ? 25 : 0;
68
 
        my $head_cl = have_min_apache_version(2.1) ? $cl : undef;
 
67
        my $cl      = 0;
 
68
        my $head_cl = undef;
69
69
           
70
70
        ok t_cmp $res->code, 200, "$method $uri code";
71
71
        ok t_cmp ($res->header('Content-Length'),