mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-20 13:14:27 -05:00
Remove 'host' from query params
This commit is contained in:
parent
f01152eda1
commit
58f4212aa8
@ -4218,8 +4218,8 @@ get "/videoplayback" do |env|
|
|||||||
query_params = env.params.query
|
query_params = env.params.query
|
||||||
|
|
||||||
if query_params["host"]? && !query_params["host"].empty?
|
if query_params["host"]? && !query_params["host"].empty?
|
||||||
pp query_params["host"]
|
|
||||||
host = "https://#{query_params["host"]}"
|
host = "https://#{query_params["host"]}"
|
||||||
|
query_params.delete("host")
|
||||||
else
|
else
|
||||||
fvip = query_params["fvip"]? || "3"
|
fvip = query_params["fvip"]? || "3"
|
||||||
mn = query_params["mn"].split(",").pop
|
mn = query_params["mn"].split(",").pop
|
||||||
|
Loading…
Reference in New Issue
Block a user