mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Set domain to be nil by default
This commit is contained in:
parent
66605196ad
commit
17cf0772fb
3 changed files with 9 additions and 4 deletions
|
@ -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 = "/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue