@@ -23,7 +23,7 @@ use Test::Nginx;
23
23
select STDERR ; $| = 1;
24
24
select STDOUT ; $| = 1;
25
25
26
- my $t = Test::Nginx-> new()-> has(qw/ http perl rewrite/ )-> plan(25 )
26
+ my $t = Test::Nginx-> new()-> has(qw/ http perl rewrite/ )-> plan(27 )
27
27
-> write_file_expand(' nginx.conf' , <<'EOF' );
28
28
29
29
%%TEST_GLOBALS%%
@@ -153,6 +153,18 @@ like(http(
153
153
. ' Host: localhost' . CRLF . CRLF
154
154
), qr / xfoo: foo/ , ' perl header_in unknown' );
155
155
156
+ TODO: {
157
+ local $TODO = ' not yet' unless $t -> has_version(' 1.23.0' );
158
+
159
+ like(http(
160
+ ' GET / HTTP/1.0' . CRLF
161
+ . ' X-Foo: foo' . CRLF
162
+ . ' X-Foo: bar' . CRLF
163
+ . ' Host: localhost' . CRLF . CRLF
164
+ ), qr / xfoo: foo, bar/ , ' perl header_in unknown2' );
165
+
166
+ }
167
+
156
168
like(http(
157
169
' GET / HTTP/1.0' . CRLF
158
170
. ' Cookie: foo' . CRLF
@@ -188,6 +200,13 @@ like(http(
188
200
. ' Host: localhost' . CRLF . CRLF
189
201
), qr / connection: close/ , ' perl header_in connection' );
190
202
203
+ like(http(
204
+ ' GET / HTTP/1.0' . CRLF
205
+ . ' Connection: close' . CRLF
206
+ . ' Connection: foo' . CRLF
207
+ . ' Host: localhost' . CRLF . CRLF
208
+ ), qr / connection: close, foo/ , ' perl header_in connection2' );
209
+
191
210
}
192
211
193
212
# headers_out content-length tests with range filter
0 commit comments