Mercurial > hg > nginx-tests
comparison fastcgi_body.t @ 317:a9621dbbd0d4
Tests: remove TODOs with 1.3.x version checks.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 23 Jul 2013 20:25:05 +0400 |
parents | 6fe0459b6668 |
children | a9569f57da98 |
comparison
equal
deleted
inserted
replaced
316:f36c3532a117 | 317:a9621dbbd0d4 |
---|---|
60 like(http_get('/'), qr/X-Body: /, 'fastcgi no body'); | 60 like(http_get('/'), qr/X-Body: /, 'fastcgi no body'); |
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: { | |
66 local $TODO = 'not yet' unless $t->has_version('1.3.9'); | |
67 | |
68 like(http(<<EOF), qr/X-Body: foobar/, 'fastcgi chunked'); | 65 like(http(<<EOF), qr/X-Body: foobar/, 'fastcgi chunked'); |
69 GET / HTTP/1.1 | 66 GET / HTTP/1.1 |
70 Host: localhost | 67 Host: localhost |
71 Connection: close | 68 Connection: close |
72 Transfer-Encoding: chunked | 69 Transfer-Encoding: chunked |
84 Transfer-Encoding: chunked | 81 Transfer-Encoding: chunked |
85 | 82 |
86 0 | 83 0 |
87 | 84 |
88 EOF | 85 EOF |
89 | |
90 } | |
91 | 86 |
92 ############################################################################### | 87 ############################################################################### |
93 | 88 |
94 sub http_get_length { | 89 sub http_get_length { |
95 my ($url, $body) = @_; | 90 my ($url, $body) = @_; |