Mercurial > hg > nginx-tests
comparison proxy_ssi_body.t @ 594:8dd5cf697eae
Tests: todo_alerts() with sendfile if any in proxied subrequests.
Use of sendfile may be injected via TEST_NGINX_GLOBALS_HTTP producing alerts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 28 May 2015 14:40:29 +0300 |
parents | ddc4b1011333 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
593:6c0a5903d0ae | 594:8dd5cf697eae |
---|---|
56 EOF | 56 EOF |
57 | 57 |
58 $t->write_file('ssi.html', 'X<!--# include virtual="test.html" -->X'); | 58 $t->write_file('ssi.html', 'X<!--# include virtual="test.html" -->X'); |
59 $t->write_file('test.html', 'YY'); | 59 $t->write_file('test.html', 'YY'); |
60 | 60 |
61 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /sendfile on/; | |
61 $t->run(); | 62 $t->run(); |
62 | 63 |
63 ############################################################################### | 64 ############################################################################### |
64 | 65 |
65 # Request body cache file is released once a response is got. | 66 # Request body cache file is released once a response is got. |