changeset 1297:a94a0fc60d56

Tests: avoid empty DATA frame in h2_variables.t.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 07 Mar 2018 19:03:37 +0300
parents 5d75938b2622
children 84a661563eae
files h2_variables.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h2_variables.t	Fri Mar 02 19:16:54 2018 +0300
+++ b/h2_variables.t	Wed Mar 07 19:03:37 2018 +0300
@@ -50,7 +50,7 @@
             return 200 $scheme;
         }
         location /https {
-            return 200 $https;
+            return 200 "body $https";
         }
         location /rl {
             return 200 $request_length;
@@ -98,7 +98,7 @@
 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]);
 
 ($frame) = grep { $_->{type} eq "DATA" } @$frames;
-is($frame->{data}, '', 'https variable');
+is($frame->{data}, 'body ', 'https variable');
 
 # $request_length, HEADERS payload length