comparison h2.t @ 944:235f796c2861

Tests: fixed h2.t test with default host header. The problem appeared after 0d4536093b39.
author Andrey Zelenkov <zelenkov@nginx.com>
date Sat, 11 Jun 2016 04:22:43 +0300
parents 48d277065309
children d73bef563aea
comparison
equal deleted inserted replaced
943:0d4536093b39 944:235f796c2861
490 $sid = new_stream($sess, { path => '/return301_relative' }); 490 $sid = new_stream($sess, { path => '/return301_relative' });
491 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); 491 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]);
492 492
493 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; 493 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
494 is($frame->{headers}->{':status'}, 301, 'return 301 relative - status'); 494 is($frame->{headers}->{':status'}, 301, 'return 301 relative - status');
495 is($frame->{headers}->{'location'}, 'http://127.0.0.1:8080/', 495 is($frame->{headers}->{'location'}, 'http://localhost:8080/',
496 'return 301 relative - location'); 496 'return 301 relative - location');
497 497
498 # return 301 with relative URI and ':authority' request header field 498 # return 301 with relative URI and ':authority' request header field
499 499
500 $sess = new_session(); 500 $sess = new_session();