diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:19:02 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:19:02 -0500 |
| commit | 9898b2900f553cec304ee2136d264002d1488d10 (patch) | |
| tree | d936303c635f4b45a2c76aa7289a75968e4f4f8e /src | |
| parent | 2aca7f7c19167810dfa0e2318fde1eacfe84a92d (diff) | |
| download | invidious-9898b2900f553cec304ee2136d264002d1488d10.tar.gz invidious-9898b2900f553cec304ee2136d264002d1488d10.tar.bz2 invidious-9898b2900f553cec304ee2136d264002d1488d10.zip | |
Change status_code to that of response for videoplayback
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index d8f03ff7..e8e0e1af 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -819,7 +819,7 @@ get "/videoplayback" do |env| url = URI.parse(response.headers["Location"]) env.redirect url.full_path else - env.response.status_code = 206 + env.response.status_code = response.status_code response.headers.each do |key, value| env.response.headers[key] = value @@ -830,10 +830,6 @@ get "/videoplayback" do |env| loop do count = response.body_io.read(chunk) - if count == 0 - break - end - begin env.response.write(chunk) env.response.flush |
