all repos — mycal @ 9eb46ab735df9e47dc850ac1475ebe99827e8092

private calendar anonymiser

set correct content-type header

Alan Pearce
commit

9eb46ab735df9e47dc850ac1475ebe99827e8092

parent

017843d2d0f75c8b5301acf534f72618db898fbe

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M mycal.pymycal.py
@@ -93,7 +93,7 @@ busy.add('dtstamp', component.get('dtstamp', icalendar.prop.vDatetime(datetime.now(tz))))
busy.add('dtstart', dtstart) busy.add('dtend', dtend) output.add_component(busy) - return output.to_ical(), { "Content-Type": "text/plain" } + return output.to_ical(), { "Content-Type": "text/calendar" } except Exception as e: print("error:", e) return f"Error parsing with icalendar: {str(e)}", 500