mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix 404 for video thumbnails
This commit is contained in:
parent
351ecfae0f
commit
3dd4043827
1 changed files with 4 additions and 1 deletions
|
@ -4705,6 +4705,7 @@ get "/ggpht/*" do |env|
|
|||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
|
||||
if response.status_code >= 300
|
||||
env.response.headers.delete("Transfer-Encoding")
|
||||
break
|
||||
end
|
||||
|
||||
|
@ -4754,6 +4755,7 @@ get "/sb/:id/:storyboard/:index" do |env|
|
|||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
|
||||
if response.status_code >= 300
|
||||
env.response.headers.delete("Transfer-Encoding")
|
||||
break
|
||||
end
|
||||
|
||||
|
@ -4798,7 +4800,8 @@ get "/vi/:id/:name" do |env|
|
|||
|
||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
|
||||
if response.status_code >= 300
|
||||
if response.status_code >= 300 && response.status_code != 404
|
||||
env.response.headers.delete("Transfer-Encoding")
|
||||
break
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue