Invidious is an alternative front-end to YouTube
SigHelper: Use 'URI.parse' instead of 'URI.new'
Samantaz Fox61d75050e46e
diff --git a/src/invidious/helpers/sig_helper.cr b/src/invidious/helpers/sig_helper.crindex b8b985d5..09079850 100644--- a/src/invidious/helpers/sig_helper.cr+++ b/src/invidious/helpers/sig_helper.cr@@ -274,10 +274,10 @@ class Invidious::SigHelperwhen .starts_with?('/')@socket = UNIXSocket.new(host_or_path)when .starts_with?("tcp://")- uri = URI.new(host_or_path)+ uri = URI.parse(host_or_path)@socket = TCPSocket.new(uri.host.not_nil!, uri.port.not_nil!)else- uri = URI.new("tcp://#{host_or_path}")+ uri = URI.parse("tcp://#{host_or_path}")@socket = TCPSocket.new(uri.host.not_nil!, uri.port.not_nil!)end