Mercurial > hg > nginx-tests
comparison fastcgi_body.t @ 242:8f280348d76f
Tests: add has_version() method and use it as appropriate.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 26 Nov 2012 03:47:31 +0400 |
parents | 462d89f5732a |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
241:a01a53bcbf11 | 242:8f280348d76f |
---|---|
61 | 61 |
62 like(http_get_length('/', ''), qr/X-Body: /, 'fastcgi empty body'); | 62 like(http_get_length('/', ''), qr/X-Body: /, 'fastcgi empty body'); |
63 like(http_get_length('/', 'foobar'), qr/X-Body: foobar/, 'fastcgi body'); | 63 like(http_get_length('/', 'foobar'), qr/X-Body: foobar/, 'fastcgi body'); |
64 | 64 |
65 TODO: { | 65 TODO: { |
66 local $TODO = 'not yet'; | 66 local $TODO = 'not yet' unless $t->has_version('1.3.9'); |
67 | 67 |
68 like(http(<<EOF), qr/X-Body: foobar/, 'fastcgi chunked'); | 68 like(http(<<EOF), qr/X-Body: foobar/, 'fastcgi chunked'); |
69 GET / HTTP/1.1 | 69 GET / HTTP/1.1 |
70 Host: localhost | 70 Host: localhost |
71 Connection: close | 71 Connection: close |