Respect use_quic param and fix typos

This commit is contained in:
syeopite
2021-09-28 17:21:26 -07:00
parent b0f127d4d8
commit 245122104a
2 changed files with 6 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ module Invidious::Routes::Login
begin
client = nil # Declare variable
{% unless flag?(:disable_quic) %}
client = QUIC::Client.new(LOGIN_URL)
client = CONFIG.use_quic ? QUIC::Client.new(LOGIN_URL) : HTTP::Client.new(LOGIN_URL)
{% else %}
client = HTTP::Client.new(LOGIN_URL)
{% end %}