Skip to content

Commit d9b03d9

Browse files
Backcompat comment
1 parent 9978176 commit d9b03d9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/backend/src/couchers/email/calendar_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def calendar_to_attachment(calendar: Calendar, filename: str) -> EmailAttachment
102102
content_type = 'text/calendar; charset="utf-8"'
103103
if calendar.method:
104104
# The SMTP Content-Type "method" parameter must match the value in the ics file.
105+
# AI recommends avoiding quotes on this parameter for backwards compatibility with old email clients.
105106
content_type += f"; method={calendar.method}"
106107

107108
return EmailAttachment(data=data, content_disposition=content_disposition, content_type=content_type)

0 commit comments

Comments
 (0)