| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More; |
| 4 | use lib 't/lib/'; |
| 5 | use t::Internal; |
| 6 | |
| 7 | my $client = t::Internal->new(path => 't/fcgi/hello.fcgi'); |
| 8 | my ( $stdout, $stderr ) = $client->request( |
| 9 | +{ |
| 10 | REQUEST_METHOD => 'GET', |
| 11 | QUERY_STRING => 'foo=' . ('0' x 125), |
| 12 | 'HTTP_X_FOO' . ('0' x 125) => 1, |
| 13 | }, |
| 14 | '' |
| 15 | ); |
| 16 | is $stdout, "Content−type: text/html\r\n\r\nhello\nfoo=".('0'x125); |
| 17 | is $stderr, "hello, stderr\n"; |
| 18 | |
| 19 | done_testing; |