aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-10-27 13:40:42 +0100
committerAnton Khirnov <anton@khirnov.net>2019-10-27 13:40:42 +0100
commit3e62ca0d1d08b8a08f538a3b9cafe5fb58a7fe75 (patch)
tree3b371d0cb7fd609c4b5da95a9baf329b8f92a10e
parent70a727b610d99222360ac09869b75d1caa50bd21 (diff)
Drop the Accel-Redirect path, it's untested and of unclear value.
Can be re-added later if needed.
-rwxr-xr-xdash_server.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/dash_server.py b/dash_server.py
index 5ed4fd2..836aebe 100755
--- a/dash_server.py
+++ b/dash_server.py
@@ -220,11 +220,8 @@ class DashRequestHandler(hs.BaseHTTPRequestHandler):
ds = self.server._streams[local_path]
except KeyError:
if os.path.exists(outpath):
+ self._logger.info('serve local: %s', local_path)
return self._serve_local(outpath)
- # we managed to finalize the file after the upstream checked for it and before now
- self.send_response(HTTPStatus.OK)
- self.send_header('X-Accel-Redirect', self.path)
- self.end_headers()
else:
self.send_error(HTTPStatus.NOT_FOUND)