@ -4230,7 +4230,7 @@ get "/videoplayback" do |env|
url = "/videoplayback?#{query_params.to_s}"
headers = HTTP::Headers.new
{"Range", "Accept", "Accept-Encoding"}.each do |header|
{"Accept", "Accept-Encoding", "Connection", "Range"}.each do |header|
if env.request.headers[header]?
headers[header] = env.request.headers[header]
end
@ -75,6 +75,14 @@ class DenyFrame < Kemal::Handler
# Temp fix for https://github.com/crystal-lang/crystal/issues/7383
class HTTP::Client
private def handle_response(response)
# close unless response.keep_alive?
response
def rank_videos(db, n)
top = [] of {Float64, String}