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 @@ -357,6 +357,7 @@ function request_methods:go(timeout)
357357 local host = self .host
358358 local port = self .port
359359 local tls = self .tls
360+ local version = self .version
360361
361362 -- RFC 6797 Section 8.3
362363 if not tls and self .hsts and self .hsts :check (host ) then
@@ -444,7 +445,7 @@ function request_methods:go(timeout)
444445 tls = tls ;
445446 ctx = self .ctx ;
446447 sendname = self .sendname ;
447- version = self . version ;
448+ version = version ;
448449 h2_settings = default_h2_settings ;
449450 }, deadline and deadline - monotime ())
450451 if connection == nil then
@@ -480,7 +481,7 @@ function request_methods:go(timeout)
480481 tls = tls ;
481482 ctx = self .ctx ;
482483 sendname = self .sendname ~= nil and self .sendname or host ;
483- version = self . version ;
484+ version = version ;
484485 h2_settings = default_h2_settings ;
485486 }, deadline and deadline - monotime ())
486487 if connection == nil then
@@ -501,7 +502,7 @@ function request_methods:go(timeout)
501502 tls = tls ;
502503 ctx = self .ctx ;
503504 sendname = self .sendname ;
504- version = self . version ;
505+ version = version ;
505506 h2_settings = default_h2_settings ;
506507 }, deadline and deadline - monotime ())
507508 if connection == nil then
You can’t perform that action at this time.
0 commit comments