Skip to content

Commit

Permalink
Fix Broken Links (#8711)
Browse files Browse the repository at this point in the history
  • Loading branch information
justindhillon committed Nov 24, 2023
1 parent a0bc3a3 commit 614a36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: http://wiki.nginx.org/NginxXSendfile
] = f"/clips/{file_name}" # nginx: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_headers

return response

Expand Down Expand Up @@ -1753,7 +1753,7 @@ def recording_clip(camera_name, start_ts, end_ts):
response.headers["Content-Length"] = os.path.getsize(path)
response.headers[
"X-Accel-Redirect"
] = f"/cache/{file_name}" # nginx: http://wiki.nginx.org/NginxXSendfile
] = f"/cache/{file_name}" # nginx: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_headers

return response

Expand Down

0 comments on commit 614a36a

Please sign in to comment.