File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -1161,7 +1161,7 @@ r%5B%5D=http%3A%2F%2Fajax.googleapis.com%3A80%2Fajax%2Flibs%2Fjquery%2F1.7.2%2Fj
1161
1161
GET /main
1162
1162
--- response_body
1163
1163
status: 500
1164
- body:
1164
+ body:
1165
1165
1166
1166
1167
1167
@@ -1182,7 +1182,7 @@ body:
1182
1182
GET /main
1183
1183
--- response_body
1184
1184
status: 500
1185
- body:
1185
+ body:
1186
1186
1187
1187
1188
1188
@@ -1487,7 +1487,7 @@ post subreq: rc=0, status=200
1487
1487
1488
1488
--- response_body
1489
1489
status: 200
1490
- body:
1490
+ body:
1491
1491
truncated: true
1492
1492
1493
1493
--- error_log
@@ -1609,7 +1609,7 @@ post subreq: rc=0, status=200
1609
1609
1610
1610
--- response_body
1611
1611
status: 200
1612
- body:
1612
+ body:
1613
1613
truncated: true
1614
1614
1615
1615
--- error_log
@@ -2082,7 +2082,7 @@ post subreq: rc=0, status=200
2082
2082
2083
2083
--- response_body
2084
2084
status: 200
2085
- body:
2085
+ body:
2086
2086
truncated: true
2087
2087
2088
2088
--- error_log
Original file line number Diff line number Diff line change @@ -331,6 +331,8 @@ Foo: bar baz\r
331
331
}
332
332
--- no_error_log
333
333
[error]
334
+ --- skip_nginx
335
+ 3: >= 1.21.1
334
336
335
337
336
338
@@ -362,6 +364,8 @@ Connection: close\r
362
364
--- no_error_log
363
365
[error]
364
366
--- timeout: 5
367
+ --- skip_nginx
368
+ 3: >= 1.21.1
365
369
366
370
367
371
@@ -988,3 +992,28 @@ Connection: close
988
992
--- no_error_log
989
993
[error]
990
994
--- timeout: 5
995
+
996
+
997
+
998
+ === TEST 34: multi-line header is invalid (nginx >= 1.21.1)
999
+ --- config
1000
+ location /t {
1001
+ content_by_lua '
1002
+ ngx.print(ngx.req.raw_header())
1003
+ ';
1004
+ }
1005
+ --- raw_request eval
1006
+ "GET /t HTTP/1.1\r
1007
+ Host: localhost\r
1008
+ Connection: close\r
1009
+ Foo: bar baz\r
1010
+ blah\r
1011
+ \r
1012
+ "
1013
+ --- error_code: 400
1014
+ --- error_log
1015
+ client sent invalid header line: "\x20..." while reading client request headers
1016
+ --- no_error_log
1017
+ [error]
1018
+ --- skip_nginx
1019
+ 3: < 1.21.1
You can’t perform that action at this time.
0 commit comments