mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-17 10:28:51 +00:00
Set domain to be nil by default
This commit is contained in:
@@ -200,7 +200,12 @@ def make_host_url(ssl, host)
|
||||
scheme = "http://"
|
||||
end
|
||||
|
||||
return "#{scheme}#{host}"
|
||||
if host
|
||||
host = host.lchop(".")
|
||||
return "#{scheme}#{host}"
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end
|
||||
|
||||
def get_referer(env, fallback = "/")
|
||||
|
||||
Reference in New Issue
Block a user