We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ab8a6 commit 8ecf728Copy full SHA for 8ecf728
invokeai/app/api/routers/images.py
@@ -253,6 +253,7 @@ async def get_image_full(
253
content = f.read()
254
response = Response(content, media_type="image/png")
255
response.headers["Cache-Control"] = f"max-age={IMAGE_MAX_AGE}"
256
+ response.headers["Content-Disposition"] = f'inline; filename="{image_name}"'
257
return response
258
except Exception:
259
raise HTTPException(status_code=404)
0 commit comments