comparison scgi.t @ 491:d5bf5942a8b2

Tests: disambiguated parsing of the status code.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 07 Nov 2014 13:05:07 +0300
parents 6a0d934950bc
children dc2f8aac0553
comparison
equal deleted inserted replaced
490:65d2d372ee31 491:d5bf5942a8b2
56 $t->run(); 56 $t->run();
57 57
58 ############################################################################### 58 ###############################################################################
59 59
60 like(http_get('/'), qr/SEE-THIS/, 'scgi request'); 60 like(http_get('/'), qr/SEE-THIS/, 'scgi request');
61 like(http_get('/redir'), qr/302/, 'scgi redirect'); 61 like(http_get('/redir'), qr/ 302 /, 'scgi redirect');
62 like(http_get('/'), qr/^3$/m, 'scgi third request'); 62 like(http_get('/'), qr/^3$/m, 'scgi third request');
63 63
64 unlike(http_head('/'), qr/SEE-THIS/, 'no data in HEAD'); 64 unlike(http_head('/'), qr/SEE-THIS/, 'no data in HEAD');
65 65
66 like(http_get_headers('/headers'), qr/SEE-THIS/, 66 like(http_get_headers('/headers'), qr/SEE-THIS/,