# HG changeset patch # User Sergey Kandaurov # Date 1507907699 -10800 # Node ID 6979619de0e37bf7c41b06919bb2a5ecd6a0d2ad # Parent 31045e6397324892a368a4606e5429422504649e Tests: added stream $status test with invalid PROXY header. diff --git a/stream_status_variable.t b/stream_status_variable.t --- a/stream_status_variable.t +++ b/stream_status_variable.t @@ -77,12 +77,13 @@ stream { server { listen 127.0.0.1:8086 proxy_protocol; return SEE-THIS; + access_log %%TESTDIR%%/400.log status; } } EOF -$t->try_run('no stream access_log')->plan(5); +$t->try_run('no stream access_log')->plan(6); ############################################################################### @@ -98,6 +99,7 @@ undef $s; $t->stop(); is($t->read_file('200.log'), "200\n", 'stream status 200'); +is($t->read_file('400.log'), "400\n", 'stream status 400'); is($t->read_file('403.log'), "403\n", 'stream status 403'); is($t->read_file('500.log'), "500\n", 'stream status 500'); is($t->read_file('502.log'), "502\n", 'stream status 502');