@@ -134,7 +134,7 @@ $t->write_file('t1', join('', map { sprintf "X%04dXXX", $_ } (1 .. 8202)));
134
134
$t -> write_file(' t2' , ' SEE-THIS' );
135
135
$t -> write_file(' explf' , join (' ' , map { sprintf " X%06dXXX" , $_ } (1 .. 6553)));
136
136
137
- $t -> try_run(' no http2_push' )-> plan(41 );
137
+ $t -> try_run(' no http2_push' )-> plan(42 );
138
138
139
139
# ##############################################################################
140
140
@@ -407,6 +407,24 @@ is($frame->{headers}->{'content-encoding'}, 'gzip', 'gzip - headers');
407
407
($frame ) = grep { $_ -> {type } eq " DATA" && $_ -> {sid } == 2 } @$frames ;
408
408
gunzip_like($frame -> {data }, qr / ^PROMISED\Z / , ' gzip - response' );
409
409
410
+ # scheme https
411
+
412
+ TODO: {
413
+ local $TODO = ' not yet' ;
414
+
415
+ $s = Test::Nginx::HTTP2-> new();
416
+ $sid = $s -> new_stream({ headers => [
417
+ { name => ' :method' , value => ' GET' , mode => 0 },
418
+ { name => ' :scheme' , value => ' https' , mode => 0 },
419
+ { name => ' :path' , value => ' /preload' },
420
+ { name => ' :authority' , value => ' localhost' , mode => 1 }]});
421
+ $frames = $s -> read (all => [{ sid => 2, fin => 1 }]);
422
+
423
+ ($frame ) = grep { $_ -> {type } eq " PUSH_PROMISE" && $_ -> {sid } == $sid } @$frames ;
424
+ is($frame -> {headers }-> {' :scheme' }, ' https' , ' scheme https' );
425
+
426
+ }
427
+
410
428
# ##############################################################################
411
429
412
430
sub gunzip_like {
0 commit comments