Mercurial > hg > nginx-tests
comparison body_chunked.t @ 1502:5ae8e8feac36
Tests: adjusted request body tests with invalid chunked body.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 04 Sep 2019 15:03:03 +0300 |
parents | 91235919d80f |
children | 27237569776f |
comparison
equal
deleted
inserted
replaced
1501:91235919d80f | 1502:5ae8e8feac36 |
---|---|
150 . '0' . CRLF . CRLF | 150 . '0' . CRLF . CRLF |
151 ), | 151 ), |
152 qr/400 Bad/, 'runaway chunk' | 152 qr/400 Bad/, 'runaway chunk' |
153 ); | 153 ); |
154 | 154 |
155 unlike( | 155 like( |
156 http( | 156 http( |
157 'GET /discard HTTP/1.1' . CRLF | 157 'GET /discard HTTP/1.1' . CRLF |
158 . 'Host: localhost' . CRLF | 158 . 'Host: localhost' . CRLF |
159 . 'Connection: close' . CRLF | 159 . 'Connection: close' . CRLF |
160 . 'Transfer-Encoding: chunked' . CRLF . CRLF | 160 . 'Transfer-Encoding: chunked' . CRLF . CRLF |
161 . '4' . CRLF | 161 . '4' . CRLF |
162 . 'SEE-THIS' . CRLF | 162 . 'SEE-THIS' . CRLF |
163 . '0' . CRLF . CRLF | 163 . '0' . CRLF . CRLF |
164 ), | 164 ), |
165 qr/200 OK/, 'runaway chunk discard' | 165 qr/400 Bad/, 'runaway chunk discard' |
166 ); | 166 ); |
167 | 167 |
168 } | 168 } |
169 | 169 |
170 # proxy_next_upstream | 170 # proxy_next_upstream |