Skip to content

Commit

Permalink
Restore content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarprause committed Apr 16, 2023
1 parent 8d59555 commit 7f7514b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const handle: Handler = async (request) => {
for (const calendarEvent of calendarEvents) {
calendar.createEvent(calendarEvent);
}
return new Response(calendar.toString());
return new Response(calendar.toString(), {
headers: { "Content-Type": "text/calendar" },
});
};

serve(handle);

0 comments on commit 7f7514b

Please sign in to comment.