diff h2.t @ 717:3b6ff3b7367d

Tests: fixed multiple header field values representation in h2.t.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 28 Sep 2015 16:41:02 +0300
parents e3fd2c8d257e
children ba822b2e899c
line wrap: on
line diff
--- a/h2.t
+++ b/h2.t
@@ -2597,7 +2597,7 @@ sub hunpack {
 	sub add {
 		my ($h, $n, $v) = @_;
 		return $h->{$n} = $v unless exists $h->{$n};
-		$h->{$n} = [ $h->{$n} ];
+		$h->{$n} = [ $h->{$n} ] unless ref $h->{$n};
 		push @{$h->{$n}}, $v;
 	}