mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +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 bookings = await getBookings()
|
||||||
const ical = generateBookedCalendar(bookings)
|
const ical = generateBookedCalendar(bookings)
|
||||||
res.statusCode = 200
|
res.statusCode = 200
|
||||||
//res.set('Content-Type', 'text/calendar;charset=utf-8')
|
res.setHeader('Content-Type', 'text/calendar;charset=utf-8')
|
||||||
//res.set('Content-Disposition', 'attachment; filename="pfadi-bussle.ics"')
|
res.setHeader(
|
||||||
|
'Content-Disposition',
|
||||||
|
'attachment; filename="pfadi-bussle.ics"'
|
||||||
|
)
|
||||||
res.send(ical)
|
res.send(ical)
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user