Mercurial > hg > nginx-tests
comparison body_chunked.t @ 1937:2a0a6035a1af
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 25 Aug 2023 18:12:08 +0400 |
parents | 122002b19416 |
children | 5cf0e07d63a1 |
comparison
equal
deleted
inserted
replaced
1936:716d7500317d | 1937:2a0a6035a1af |
---|---|
176 qr/400 Bad/, 'transfer encoding repeat'); | 176 qr/400 Bad/, 'transfer encoding repeat'); |
177 | 177 |
178 like(http_transfer_encoding('chunked, identity'), qr/501 Not Implemented/, | 178 like(http_transfer_encoding('chunked, identity'), qr/501 Not Implemented/, |
179 'transfer encoding list'); | 179 'transfer encoding list'); |
180 | 180 |
181 TODO: { | |
182 local $TODO = 'not yet' unless $t->has_version('1.21.1'); | |
183 | |
184 like(http_transfer_encoding("chunked\nContent-Length: 5"), qr/400 Bad/, | 181 like(http_transfer_encoding("chunked\nContent-Length: 5"), qr/400 Bad/, |
185 'transfer encoding with content-length'); | 182 'transfer encoding with content-length'); |
186 | 183 |
187 } | |
188 | |
189 TODO: { | |
190 local $TODO = 'not yet' unless $t->has_version('1.21.2'); | |
191 | |
192 like(http_transfer_encoding("chunked", "1.0"), qr/400 Bad/, | 184 like(http_transfer_encoding("chunked", "1.0"), qr/400 Bad/, |
193 'transfer encoding in HTTP/1.0 requests'); | 185 'transfer encoding in HTTP/1.0 requests'); |
194 | |
195 } | |
196 | 186 |
197 ############################################################################### | 187 ############################################################################### |
198 | 188 |
199 sub read_body_file { | 189 sub read_body_file { |
200 my ($r) = @_; | 190 my ($r) = @_; |