# HG changeset patch # User Maxim Dounin # Date 1653935385 -10800 # Node ID be3ada2e9d24f6eba0de3c459b1054b61fce77cc # Parent b7d0e595e9271c31fa480a36e7e8c226b67c1ceb Tests: scgi tests for combining headers. diff --git a/scgi.t b/scgi.t --- a/scgi.t +++ b/scgi.t @@ -24,7 +24,7 @@ select STDOUT; $| = 1; eval { require SCGI; }; plan(skip_all => 'SCGI not installed') if $@; -my $t = Test::Nginx->new()->has(qw/http scgi/)->plan(7) +my $t = Test::Nginx->new()->has(qw/http scgi/)->plan(10) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -81,6 +81,33 @@ like(http_get('/var?b=127.0.0.1:' . port 'scgi with variables'); like(http_get('/var?b=u'), qr/SEE-THIS/, 'scgi with variables to upstream'); +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.23.0'); + +my $r = http(<env->{HTTP_X_FORWARDED_FOR} || ''; + my $cookie = $request->env->{HTTP_COOKIE} || ''; + my $foo = $request->env->{HTTP_FOO} || ''; + $request->connection()->print(<