Mercurial > hg > nginx-tests
changeset 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 |
files | h2.t proxy.t realip.t |
diffstat | 3 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Sat Sep 26 00:03:22 2015 +0300 +++ b/h2.t Mon Sep 28 16:41:02 2015 +0300 @@ -2597,7 +2597,7 @@ 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; }