Mercurial > hg > nginx-tests
comparison body.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | 57a92c20f974 |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
168 like(http_get_body('/next', '0123456789'), | 168 like(http_get_body('/next', '0123456789'), |
169 qr/X-Body: 0123456789\x0d?$/ms, 'body next upstream'); | 169 qr/X-Body: 0123456789\x0d?$/ms, 'body next upstream'); |
170 | 170 |
171 # discarded request body in redirect via error_page | 171 # discarded request body in redirect via error_page |
172 | 172 |
173 TODO: { | |
174 local $TODO = 'not yet' unless $t->has_version('1.17.7'); | |
175 | |
176 unlike( | 173 unlike( |
177 http( | 174 http( |
178 'POST /redirect HTTP/1.1' . CRLF | 175 'POST /redirect HTTP/1.1' . CRLF |
179 . 'Host: localhost' . CRLF | 176 . 'Host: localhost' . CRLF |
180 . 'Content-Length: 10' . CRLF . CRLF | 177 . 'Content-Length: 10' . CRLF . CRLF |
181 . '0123456789' . | 178 . '0123456789' . |
182 'GET /next HTTP/1.0' . CRLF . CRLF | 179 'GET /next HTTP/1.0' . CRLF . CRLF |
183 ), | 180 ), |
184 qr/400 Bad Request/ms, 'redirect - discard request body' | 181 qr/400 Bad Request/ms, 'redirect - discard request body' |
185 ); | 182 ); |
186 | |
187 } | |
188 | 183 |
189 ############################################################################### | 184 ############################################################################### |
190 | 185 |
191 sub read_body_file { | 186 sub read_body_file { |
192 my ($r) = @_; | 187 my ($r) = @_; |