Justin Dhillon 2023-11-21 23:07:23 -08:00
parent b385773086
commit 54a0e45232

View File

@ -1753,7 +1753,7 @@ def recording_clip(camera_name, start_ts, end_ts):
response.headers["Content-Length"] = os.path.getsize(path) response.headers["Content-Length"] = os.path.getsize(path)
response.headers[ response.headers[
"X-Accel-Redirect" "X-Accel-Redirect"
] = f"/cache/{file_name}" # nginx: http://wiki.nginx.org/NginxXSendfile ] = f"/cache/{file_name}" # nginx: https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/
return response return response