# HG changeset patch # User Maxim Dounin # Date 1653935336 -10800 # Node ID b7d0e595e9271c31fa480a36e7e8c226b67c1ceb # Parent 5ad8f0b5fa0f7aa03d127a4e5ab2f2efd71c6de4 Tests: fastcgi tests for combining headers. diff --git a/fastcgi_header_params.t b/fastcgi_header_params.t --- a/fastcgi_header_params.t +++ b/fastcgi_header_params.t @@ -25,7 +25,7 @@ eval { require FCGI; }; plan(skip_all => 'FCGI not installed') if $@; plan(skip_all => 'win32') if $^O eq 'MSWin32'; -my $t = Test::Nginx->new()->has(qw/http fastcgi/)->plan(1) +my $t = Test::Nginx->new()->has(qw/http fastcgi/)->plan(4) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -59,6 +59,37 @@ EOF like(http_get_headers('/'), qr/SEE-THIS/, 'fastcgi request with many ignored headers'); +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.23.0'); + +my $r; + +$r = http(<Accept() >= 0 ) { $count++; + my $xfwd = $ENV{HTTP_X_FORWARDED_FOR} || ''; + my $cookie = $ENV{HTTP_COOKIE} || ''; + my $foo = $ENV{HTTP_FOO} || ''; + print <