comparison fastcgi.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 6fe0459b6668
children d95c4b8e5517
comparison
equal deleted inserted replaced
490:65d2d372ee31 491:d5bf5942a8b2
55 $t->run()->waitforsocket('127.0.0.1:8081'); 55 $t->run()->waitforsocket('127.0.0.1:8081');
56 56
57 ############################################################################### 57 ###############################################################################
58 58
59 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request'); 59 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request');
60 like(http_get('/redir'), qr/302/, 'fastcgi redirect'); 60 like(http_get('/redir'), qr/ 302 /, 'fastcgi redirect');
61 like(http_get('/'), qr/^3$/m, 'fastcgi third request'); 61 like(http_get('/'), qr/^3$/m, 'fastcgi third request');
62 62
63 unlike(http_head('/'), qr/SEE-THIS/, 'no data in HEAD'); 63 unlike(http_head('/'), qr/SEE-THIS/, 'no data in HEAD');
64 64
65 like(http_get('/stderr'), qr/SEE-THIS/, 'large stderr handled'); 65 like(http_get('/stderr'), qr/SEE-THIS/, 'large stderr handled');