mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix content type for ical
This commit is contained in:
committed by
Thomas Ruoff
parent
826dd44726
commit
da0ee84974
@@ -13,8 +13,11 @@ export default async function useHandler(
|
||||
const bookings = await getBookings()
|
||||
const ical = generateBookedCalendar(bookings)
|
||||
res.statusCode = 200
|
||||
//res.set('Content-Type', 'text/calendar;charset=utf-8')
|
||||
//res.set('Content-Disposition', 'attachment; filename="pfadi-bussle.ics"')
|
||||
res.setHeader('Content-Type', 'text/calendar;charset=utf-8')
|
||||
res.setHeader(
|
||||
'Content-Disposition',
|
||||
'attachment; filename="pfadi-bussle.ics"'
|
||||
)
|
||||
res.send(ical)
|
||||
break
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user