aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points/server.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/entry-points/server.scm')
-rw-r--r--module/entry-points/server.scm13
1 files changed, 8 insertions, 5 deletions
diff --git a/module/entry-points/server.scm b/module/entry-points/server.scm
index 46277339..408b00b3 100644
--- a/module/entry-points/server.scm
+++ b/module/entry-points/server.scm
@@ -92,11 +92,14 @@
;; TODO export all events in interval
(GET "/calendar" (start end)
- (ical-main calendar
- regular
- repeating
- (parse-iso-date start)
- (parse-iso-date end)))
+ (return '((content-type text/calendar))
+ (with-output-to-string
+ (lambda ()
+ (ical-main calendar
+ regular
+ repeating
+ (parse-iso-date start)
+ (parse-iso-date end))))))
;; TODO this returns "invalid" events, since the surrounding VCALENDAR is missing.
(GET "/calendar/:uid.ics" (uid)