Mercurial > hg > nginx-tests
comparison http_uri.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 | e4e711d07e6c |
children |
comparison
equal
deleted
inserted
replaced
1936:716d7500317d | 1937:2a0a6035a1af |
---|---|
74 like(http_get('http://localhost:8080?args'), qr!x / x.*y args y!ms, | 74 like(http_get('http://localhost:8080?args'), qr!x / x.*y args y!ms, |
75 'port args'); | 75 'port args'); |
76 like(http_get('http://localhost:8080?args#frag'), qr!x / x.*y args y!ms, | 76 like(http_get('http://localhost:8080?args#frag'), qr!x / x.*y args y!ms, |
77 'port args and frag'); | 77 'port args and frag'); |
78 | 78 |
79 TODO: { | |
80 local $TODO = 'not yet' unless $t->has_version('1.21.1'); | |
81 | |
82 like(http_get('/ /'), qr/400 Bad/, 'space'); | 79 like(http_get('/ /'), qr/400 Bad/, 'space'); |
83 | |
84 } | |
85 | |
86 TODO: { | |
87 local $TODO = 'not yet' unless $t->has_version('1.21.1'); | |
88 | |
89 like(http_get("/\x02"), qr/400 Bad/, 'control'); | 80 like(http_get("/\x02"), qr/400 Bad/, 'control'); |
90 | |
91 } | |
92 | 81 |
93 like(http_get('/%02'), qr!x /\x02 x!, 'control escaped'); | 82 like(http_get('/%02'), qr!x /\x02 x!, 'control escaped'); |
94 | 83 |
95 ############################################################################### | 84 ############################################################################### |