diff h2_variables.t @ 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 b50c8b9a7644
children 236d038dc04a
line wrap: on
line diff
--- a/h2_variables.t
+++ b/h2_variables.t
@@ -50,7 +50,7 @@ http {
             return 200 $scheme;
         }
         location /https {
-            return 200 $https;
+            return 200 "body $https";
         }
         location /rl {
             return 200 $request_length;
@@ -98,7 +98,7 @@ is($frame->{data}, 'http', 'scheme varia
 $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