comparison ignore_invalid_headers.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 d8684b300d22
children 3604ef83c1aa
comparison
equal deleted inserted replaced
1692:f6795e2e6a4b 1693:5ac6efbe5552
99 like(get($bad, 8080), qr/x-bar/, 'off - bad'); 99 like(get($bad, 8080), qr/x-bar/, 'off - bad');
100 like(get($bad2, 8080), qr/x-bar/, 'off - bad first'); 100 like(get($bad2, 8080), qr/x-bar/, 'off - bad first');
101 101
102 # ignore_invalid_headers off; headers parsing post 8f55cb5c7e79 102 # ignore_invalid_headers off; headers parsing post 8f55cb5c7e79
103 103
104 TODO: {
105 local $TODO = 'not yet' unless $t->has_version('1.17.5');
106
107 unlike(http('GET /v HTTP/1.0' . CRLF 104 unlike(http('GET /v HTTP/1.0' . CRLF
108 . 'Host: localhost' . CRLF 105 . 'Host: localhost' . CRLF
109 . 'coo: foo' . CRLF 106 . 'coo: foo' . CRLF
110 . '</kie>: x-bar' . CRLF . CRLF), qr/x-bar/, 'off - several'); 107 . '</kie>: x-bar' . CRLF . CRLF), qr/x-bar/, 'off - several');
111
112 }
113 108
114 # ignore_invalid_headers on; 109 # ignore_invalid_headers on;
115 110
116 unlike(get($us, 8081), qr/x-bar/, 'on - underscore'); 111 unlike(get($us, 8081), qr/x-bar/, 'on - underscore');
117 unlike(get($us2, 8081), qr/x-bar/, 'on - underscore first'); 112 unlike(get($us2, 8081), qr/x-bar/, 'on - underscore first');