|
|
@ -819,7 +819,7 @@ get "/videoplayback" do |env|
|
|
|
|
url = URI.parse(response.headers["Location"])
|
|
|
|
url = URI.parse(response.headers["Location"])
|
|
|
|
env.redirect url.full_path
|
|
|
|
env.redirect url.full_path
|
|
|
|
else
|
|
|
|
else
|
|
|
|
env.response.status_code = 206
|
|
|
|
env.response.status_code = response.status_code
|
|
|
|
|
|
|
|
|
|
|
|
response.headers.each do |key, value|
|
|
|
|
response.headers.each do |key, value|
|
|
|
|
env.response.headers[key] = value
|
|
|
|
env.response.headers[key] = value
|
|
|
@ -830,10 +830,6 @@ get "/videoplayback" do |env|
|
|
|
|
loop do
|
|
|
|
loop do
|
|
|
|
count = response.body_io.read(chunk)
|
|
|
|
count = response.body_io.read(chunk)
|
|
|
|
|
|
|
|
|
|
|
|
if count == 0
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
env.response.write(chunk)
|
|
|
|
env.response.write(chunk)
|
|
|
|
env.response.flush
|
|
|
|
env.response.flush
|
|
|
|