comparison h2.t @ 772:cab9f60e561e

Tests: trailing spaces removed.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 30 Oct 2015 22:16:53 +0300
parents c35b071d4b47
children 3fc382902cba
comparison
equal deleted inserted replaced
771:abe795720deb 772:cab9f60e561e
1578 'request body without content-length many - limited'); 1578 'request body without content-length many - limited');
1579 1579
1580 # request body without content-length - padding 1580 # request body without content-length - padding
1581 1581
1582 $sess = new_session(); 1582 $sess = new_session();
1583 $sid = new_stream($sess, { body => 'TESTTEST12', body_padding => 42, 1583 $sid = new_stream($sess, { body => 'TESTTEST12', body_padding => 42,
1584 headers => [ 1584 headers => [
1585 { name => ':method', value => 'GET', mode => 2 }, 1585 { name => ':method', value => 'GET', mode => 2 },
1586 { name => ':scheme', value => 'http', mode => 2 }, 1586 { name => ':scheme', value => 'http', mode => 2 },
1587 { name => ':path', value => '/client_max_body_size', mode => 2 }, 1587 { name => ':path', value => '/client_max_body_size', mode => 2 },
1588 { name => ':authority', value => 'localhost', mode => 2 }]}); 1588 { name => ':authority', value => 'localhost', mode => 2 }]});
1595 'request body without content-length pad - body'); 1595 'request body without content-length pad - body');
1596 1596
1597 # request body without content-length - padding - limited 1597 # request body without content-length - padding - limited
1598 1598
1599 $sess = new_session(); 1599 $sess = new_session();
1600 $sid = new_stream($sess, { body => 'TESTTEST123', body_padding => 42, 1600 $sid = new_stream($sess, { body => 'TESTTEST123', body_padding => 42,
1601 headers => [ 1601 headers => [
1602 { name => ':method', value => 'GET', mode => 2 }, 1602 { name => ':method', value => 'GET', mode => 2 },
1603 { name => ':scheme', value => 'http', mode => 2 }, 1603 { name => ':scheme', value => 'http', mode => 2 },
1604 { name => ':path', value => '/client_max_body_size', mode => 2 }, 1604 { name => ':path', value => '/client_max_body_size', mode => 2 },
1605 { name => ':authority', value => 'localhost', mode => 2 }]}); 1605 { name => ':authority', value => 'localhost', mode => 2 }]});
1610 'request body without content-length pad - limited'); 1610 'request body without content-length pad - limited');
1611 1611
1612 # request body without content-length - padding with many DATA frames 1612 # request body without content-length - padding with many DATA frames
1613 1613
1614 $sess = new_session(); 1614 $sess = new_session();
1615 $sid = new_stream($sess, { body => 'TESTTEST', body_padding => 42, 1615 $sid = new_stream($sess, { body => 'TESTTEST', body_padding => 42,
1616 body_split => [2], headers => [ 1616 body_split => [2], headers => [
1617 { name => ':method', value => 'GET', mode => 2 }, 1617 { name => ':method', value => 'GET', mode => 2 },
1618 { name => ':scheme', value => 'http', mode => 2 }, 1618 { name => ':scheme', value => 'http', mode => 2 },
1619 { name => ':path', value => '/client_max_body_size', mode => 2 }, 1619 { name => ':path', value => '/client_max_body_size', mode => 2 },
1620 { name => ':authority', value => 'localhost', mode => 2 }]}); 1620 { name => ':authority', value => 'localhost', mode => 2 }]});
1627 'request body without content-length many pad - body'); 1627 'request body without content-length many pad - body');
1628 1628
1629 # request body without content-length - padding with many DATA frames - limited 1629 # request body without content-length - padding with many DATA frames - limited
1630 1630
1631 $sess = new_session(); 1631 $sess = new_session();
1632 $sid = new_stream($sess, { body => 'TESTTEST123', body_padding => 42, 1632 $sid = new_stream($sess, { body => 'TESTTEST123', body_padding => 42,
1633 body_split => [2], headers => [ 1633 body_split => [2], headers => [
1634 { name => ':method', value => 'GET', mode => 2 }, 1634 { name => ':method', value => 'GET', mode => 2 },
1635 { name => ':scheme', value => 'http', mode => 2 }, 1635 { name => ':scheme', value => 'http', mode => 2 },
1636 { name => ':path', value => '/client_max_body_size', mode => 2 }, 1636 { name => ':path', value => '/client_max_body_size', mode => 2 },
1637 { name => ':authority', value => 'localhost', mode => 2 }]}); 1637 { name => ':authority', value => 'localhost', mode => 2 }]});