diff h2.t @ 813:43716ff7f8f5

Tests: unbreak h2.t when data read with empty markers.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 21 Dec 2015 14:09:22 +0300
parents fed83003c45c
children 685fc620d721
line wrap: on
line diff
--- a/h2.t
+++ b/h2.t
@@ -3143,7 +3143,7 @@ sub h2_read {
 
 		$buf = substr($buf, $length);
 
-		last unless test_fin($got[-1], $extra{all});
+		last unless $extra{all} && test_fin($got[-1], $extra{all});
 	};
 	return \@got;
 }