comparison h2_headers.t @ 902:3b90649691cc

Tests: removed unused subroutine in h2_headers.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 19 Apr 2016 13:06:52 +0300
parents a6abbfed42c0
children d73bef563aea
comparison
equal deleted inserted replaced
901:25bf03642a45 902:3b90649691cc
1007 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; 1007 ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames;
1008 is($frame->{code}, 1, 'invalid path'); 1008 is($frame->{code}, 1, 'invalid path');
1009 1009
1010 ############################################################################### 1010 ###############################################################################
1011 1011
1012 sub read_body_file {
1013 my ($path) = @_;
1014 open FILE, $path or return "$!";
1015 local $/;
1016 my $content = <FILE>;
1017 close FILE;
1018 return $content;
1019 }
1020
1021 ###############################################################################
1022
1023 sub http_daemon { 1012 sub http_daemon {
1024 my $server = IO::Socket::INET->new( 1013 my $server = IO::Socket::INET->new(
1025 Proto => 'tcp', 1014 Proto => 'tcp',
1026 LocalHost => '127.0.0.1', 1015 LocalHost => '127.0.0.1',
1027 LocalPort => 8083, 1016 LocalPort => 8083,