mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-07 09:02:08 +00:00
image_get fix, build examples
This commit is contained in:
parent
562ebcedf3
commit
8dd641bf13
2 changed files with 20 additions and 8 deletions
|
|
@ -65,7 +65,10 @@ class ImageGet(ApiHandler):
|
|||
else:
|
||||
response = _send_fallback_icon("image")
|
||||
else:
|
||||
response = send_file(path)
|
||||
if files.exists(path):
|
||||
response = send_file(path)
|
||||
else:
|
||||
response = _send_fallback_icon("image")
|
||||
|
||||
# Add cache headers for better device sync performance
|
||||
response.headers["Cache-Control"] = "public, max-age=3600"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue