mirror of
https://github.com/iv-org/invidious.git
synced 2026-08-16 21:10:53 -05:00
Fix spamming videoplayback requests when companion is unreachable
This commit is contained in:
parent
8fde720f94
commit
471c1170e6
@ -13,6 +13,8 @@ module Invidious::Routes::Companion
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue ex
|
rescue ex
|
||||||
|
env.response.status_code = 502
|
||||||
|
return env.response.print("502 Bad Gateway")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -30,6 +32,8 @@ module Invidious::Routes::Companion
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue ex
|
rescue ex
|
||||||
|
env.response.status_code = 502
|
||||||
|
return env.response.print("502 Bad Gateway")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -46,6 +50,8 @@ module Invidious::Routes::Companion
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue ex
|
rescue ex
|
||||||
|
env.response.status_code = 502
|
||||||
|
return env.response.print("502 Bad Gateway")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user