Codebase list lua-http / 814ed01
http/request: only access .version property once daurnimator 5 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
356356 local host = self.host
357357 local port = self.port
358358 local tls = self.tls
359 local version = self.version
359360
360361 -- RFC 6797 Section 8.3
361362 if not tls and self.hsts and self.hsts:check(host) then
443444 tls = tls;
444445 ctx = self.ctx;
445446 sendname = self.sendname;
446 version = self.version;
447 version = version;
447448 h2_settings = default_h2_settings;
448449 }, deadline and deadline-monotime())
449450 if connection == nil then
479480 tls = tls;
480481 ctx = self.ctx;
481482 sendname = self.sendname ~= nil and self.sendname or host;
482 version = self.version;
483 version = version;
483484 h2_settings = default_h2_settings;
484485 }, deadline and deadline-monotime())
485486 if connection == nil then
500501 tls = tls;
501502 ctx = self.ctx;
502503 sendname = self.sendname;
503 version = self.version;
504 version = version;
504505 h2_settings = default_h2_settings;
505506 }, deadline and deadline-monotime())
506507 if connection == nil then