comparison fastcgi_body.t @ 1020:196d33c2bb45

Tests: removed TODO and try_run() checks for legacy versions. Also removed now unused spdy.t and shmem prerequisite.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 31 Aug 2016 18:21:07 +0300
parents 882267679006
children
comparison
equal deleted inserted replaced
1019:41139d6f8b7b 1020:196d33c2bb45
57 57
58 like(http_get_length('/', ''), qr/X-Body: _eos\x0d?$/ms, 'fastcgi empty body'); 58 like(http_get_length('/', ''), qr/X-Body: _eos\x0d?$/ms, 'fastcgi empty body');
59 like(http_get_length('/', 'foobar'), qr/X-Body: foobar_eos\x0d?$/ms, 59 like(http_get_length('/', 'foobar'), qr/X-Body: foobar_eos\x0d?$/ms,
60 'fastcgi body'); 60 'fastcgi body');
61 61
62 TODO: {
63 local $TODO = 'not yet' unless $t->has_version('1.9.15');
64
65 like(http(<<EOF), qr/X-Body: foobar_eos\x0d?$/ms, 'fastcgi chunked'); 62 like(http(<<EOF), qr/X-Body: foobar_eos\x0d?$/ms, 'fastcgi chunked');
66 GET / HTTP/1.1 63 GET / HTTP/1.1
67 Host: localhost 64 Host: localhost
68 Connection: close 65 Connection: close
69 Transfer-Encoding: chunked 66 Transfer-Encoding: chunked
81 Transfer-Encoding: chunked 78 Transfer-Encoding: chunked
82 79
83 0 80 0
84 81
85 EOF 82 EOF
86
87 }
88 83
89 ############################################################################### 84 ###############################################################################
90 85
91 sub http_get_length { 86 sub http_get_length {
92 my ($url, $body) = @_; 87 my ($url, $body) = @_;