You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: t/041-header-filter.t
+24-22
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ GET /read
125
125
--- error_code
126
126
--- response_body
127
127
--- curl_error eval
128
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
128
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
129
129
130
130
131
131
@@ -449,6 +449,7 @@ GET /lua
449
449
450
450
451
451
=== TEST 21: lua error (string)
452
+
--- no_http2
452
453
--- config
453
454
location /lua {
454
455
set $foo'';
@@ -468,11 +469,12 @@ failed to run header_filter_by_lua*: header_filter_by_lua(nginx.conf:47):2: Some
468
469
--- no_error_log
469
470
[alert]
470
471
--- curl_error eval
471
-
qr/curl: \(56\) Failurewhen receiving data from the peer|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(52\) Empty reply from server|curl: \(95\) HTTP\/3 stream 0 reset by server/
472
+
qr/curl: \(56\) Failurewhen receiving data from the peer|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(28\) Remote peer returned unexpected data|curl: \(52\) Empty reply from server|curl: \(95\) HTTP\/3 stream 0 reset by server/
472
473
473
474
474
475
475
476
=== TEST 22: lua error (nil)
477
+
--- no_http2
476
478
--- config
477
479
location /lua {
478
480
set $foo'';
@@ -492,7 +494,7 @@ failed to run header_filter_by_lua*: unknown reason
492
494
--- no_error_log
493
495
[alert]
494
496
--- curl_error eval
495
-
qr/curl: \(56\) Failurewhen receiving data from the peer|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(52\) Empty reply from server|curl: \(95\) HTTP\/3 stream 0 reset by server/
497
+
qr/curl: \(56\) Failurewhen receiving data from the peer|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(28\) Remote peer returned unexpected data|curl: \(52\) Empty reply from server|curl: \(95\) HTTP\/3 stream 0 reset by server/
496
498
497
499
498
500
@@ -508,7 +510,7 @@ GET /lua
508
510
--- error_log
509
511
API disabled in the contextof header_filter_by_lua*
510
512
--- curl_error eval
511
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
513
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
512
514
513
515
514
516
@@ -524,7 +526,7 @@ GET /lua
524
526
--- error_log
525
527
API disabled in the contextof header_filter_by_lua*
526
528
--- curl_error eval
527
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
529
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
528
530
529
531
530
532
@@ -540,7 +542,7 @@ GET /lua
540
542
--- error_log
541
543
API disabled in the contextof header_filter_by_lua*
542
544
--- curl_error eval
543
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
545
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
544
546
545
547
546
548
@@ -556,7 +558,7 @@ GET /lua
556
558
--- error_log
557
559
API disabled in the contextof header_filter_by_lua*
558
560
--- curl_error eval
559
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
561
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
560
562
561
563
562
564
@@ -572,7 +574,7 @@ GET /lua
572
574
--- error_log
573
575
API disabled in the contextof header_filter_by_lua*
574
576
--- curl_error eval
575
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
577
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
576
578
577
579
578
580
@@ -592,7 +594,7 @@ GET /lua
592
594
--- error_log
593
595
API disabled in the contextof header_filter_by_lua*
594
596
--- curl_error eval
595
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
597
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
596
598
597
599
598
600
@@ -612,7 +614,7 @@ GET /lua
612
614
--- error_log
613
615
API disabled in the contextof header_filter_by_lua*
614
616
--- curl_error eval
615
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
617
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
616
618
617
619
618
620
@@ -628,7 +630,7 @@ GET /lua
628
630
--- error_log
629
631
API disabled in the contextof header_filter_by_lua*
630
632
--- curl_error eval
631
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
633
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
632
634
633
635
634
636
@@ -644,7 +646,7 @@ GET /lua
644
646
--- error_log
645
647
API disabled in the contextof header_filter_by_lua*
646
648
--- curl_error eval
647
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
649
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
648
650
649
651
650
652
@@ -660,7 +662,7 @@ GET /lua
660
662
--- error_log
661
663
API disabled in the contextof header_filter_by_lua*
662
664
--- curl_error eval
663
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
665
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
664
666
665
667
666
668
@@ -694,7 +696,7 @@ GET /lua
694
696
--- error_log eval
695
697
qr/API disabled in the contextof header_filter_by_lua\*|http3 requests are not supported without content-length header/ms
696
698
--- curl_error eval
697
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
699
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
698
700
699
701
700
702
@@ -718,7 +720,7 @@ if (defined $ENV{TEST_NGINX_USE_HTTP3}) {
718
720
719
721
$err_log;
720
722
--- curl_error eval
721
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
723
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
722
724
723
725
724
726
@@ -734,7 +736,7 @@ GET /lua
734
736
--- error_log
735
737
API disabled in the contextof header_filter_by_lua*
736
738
--- curl_error eval
737
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
739
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
738
740
739
741
740
742
@@ -750,7 +752,7 @@ GET /lua
750
752
--- error_log
751
753
API disabled in the contextof header_filter_by_lua*
752
754
--- curl_error eval
753
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
755
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
754
756
755
757
756
758
@@ -799,7 +801,7 @@ in function 'error'
799
801
in function 'bar'
800
802
in function 'foo'
801
803
--- curl_error eval
802
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
804
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
803
805
804
806
805
807
@@ -819,7 +821,7 @@ GET /lua?a=1&b=2
819
821
--- error_log eval
820
822
qr/failed to load external Lua file ".*?test2\.lua": cannot open.*? No such file or directory/
821
823
--- curl_error eval
822
-
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 0 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
824
+
qr/curl: \(52\) Empty reply from server|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly|curl: \(95\) HTTP\/3 stream 0 reset by server/
qr/curl: \(56\) Failure when receiving data from the peer/
929
+
qr/curl: \(56\) Failure when receiving data from the peer|curl: \(56\) Failure when receiving data from the peer|curl: \(92\) HTTP\/2 stream 1 was not closed cleanly: INTERNAL_ERROR \(err 2\)/
0 commit comments