Justin Dhillon 2023-11-22 10:43:21 -08:00
parent 6c5b65fb03
commit 3c0c32ee82

View File

@ -876,7 +876,7 @@ def event_clip(id):
response.headers["Content-Length"] = os.path.getsize(clip_path)
response.headers[
"X-Accel-Redirect"
] = f"/clips/{file_name}" # nginx: https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/
] = f"/clips/{file_name}" # nginx: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_headers
return response