summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 04:03:19 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 04:03:19 -0400
commit29bba8bd840c4e33606a2ba99e9791df49ccd280 (patch)
tree39edbb3963931bc3fb2776ef39bd03ac4ef57cbe
parent2937c50572e734da6dd51c22c1645124d1c8224e (diff)
ics
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
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',
})