From 29bba8bd840c4e33606a2ba99e9791df49ccd280 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 04:03:19 -0400 Subject: ics --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 925ec27..8e94590 100644 --- a/app.py +++ b/app.py @@ -129,7 +129,7 @@ async def calendar(state: State, iden: str) -> ASGIStreamingResponse: event = result.scalar_one() ics = event.to_ics() f = io.StringIO(ics.serialize()) - return ASGIStreamingResponse(iterator=f, media_type='application/octet-stream', headers={ + return ASGIStreamingResponse(iterator=f, media_type='text/plain', headers={ 'Content-Disposition': 'inline; filename=event.ics', }) -- cgit v1.2.3