File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,7 @@ function request_methods:go(timeout)
352352 local host = self .host
353353 local port = self .port
354354 local tls = self .tls
355+ local version = self .version
355356
356357 -- RFC 6797 Section 8.3
357358 if not tls and self .hsts and self .hsts :check (host ) then
@@ -439,7 +440,7 @@ function request_methods:go(timeout)
439440 tls = tls ;
440441 ctx = self .ctx ;
441442 sendname = self .sendname ;
442- version = self . version ;
443+ version = version ;
443444 h2_settings = default_h2_settings ;
444445 }, deadline and deadline - monotime ())
445446 if connection == nil then
@@ -475,7 +476,7 @@ function request_methods:go(timeout)
475476 tls = tls ;
476477 ctx = self .ctx ;
477478 sendname = self .sendname ~= nil and self .sendname or host ;
478- version = self . version ;
479+ version = version ;
479480 h2_settings = default_h2_settings ;
480481 }, deadline and deadline - monotime ())
481482 if connection == nil then
@@ -496,7 +497,7 @@ function request_methods:go(timeout)
496497 tls = tls ;
497498 ctx = self .ctx ;
498499 sendname = self .sendname ;
499- version = self . version ;
500+ version = version ;
500501 h2_settings = default_h2_settings ;
501502 }, deadline and deadline - monotime ())
502503 if connection == nil then
You can’t perform that action at this time.
0 commit comments