mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
parent
c3ab8a6aa8
commit
8ecf72838d
@ -253,6 +253,7 @@ async def get_image_full(
|
|||||||
content = f.read()
|
content = f.read()
|
||||||
response = Response(content, media_type="image/png")
|
response = Response(content, media_type="image/png")
|
||||||
response.headers["Cache-Control"] = f"max-age={IMAGE_MAX_AGE}"
|
response.headers["Cache-Control"] = f"max-age={IMAGE_MAX_AGE}"
|
||||||
|
response.headers["Content-Disposition"] = f'inline; filename="{image_name}"'
|
||||||
return response
|
return response
|
||||||
except Exception:
|
except Exception:
|
||||||
raise HTTPException(status_code=404)
|
raise HTTPException(status_code=404)
|
||||||
|
Loading…
Reference in New Issue
Block a user