Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | d0523391deb9 |
children | 6ca8b38f63b6 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
64 } | 64 } |
65 | 65 |
66 EOF | 66 EOF |
67 | 67 |
68 $t->run(); | 68 $t->run(); |
69 | |
70 my $f = get_body('/chunked'); | |
71 plan(skip_all => 'no unbuffered request body') unless $f; | |
72 $f->{http_end}(); | |
73 | |
74 $t->plan(49); | 69 $t->plan(49); |
75 | 70 |
76 ############################################################################### | 71 ############################################################################### |
77 | 72 |
78 # unbuffered request body | 73 # unbuffered request body |
79 | 74 |
80 $f = get_body('/', 'content-length' => 10); | 75 my $f = get_body('/', 'content-length' => 10); |
81 ok($f->{headers}, 'request'); | 76 ok($f->{headers}, 'request'); |
82 is($f->{upload}('01234', body_more => 1), '01234', 'part'); | 77 is($f->{upload}('01234', body_more => 1), '01234', 'part'); |
83 is($f->{upload}('56789'), '56789', 'part 2'); | 78 is($f->{upload}('56789'), '56789', 'part 2'); |
84 is($f->{http_end}(), 200, 'response'); | 79 is($f->{http_end}(), 200, 'response'); |
85 | 80 |