mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
image_get fix, build examples
This commit is contained in:
parent
5b833ee82a
commit
3530eef892
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