Commit 400213ae authored by Sebastian Pekarek's avatar Sebastian Pekarek
Browse files

Add charset in the returned Content-Type header

#23
parent 9a573990
......@@ -332,7 +332,7 @@ var ICalCalendar = function(_data) {
*/
this.serve = function(response, filename) {
response.writeHead(200, {
'Content-Type': 'text/calendar',
'Content-Type': 'text/calendar; charset=utf-8',
'Content-Disposition': 'attachment; filename="' + (filename || 'calendar.ics') + '"'
});
response.end(generate(this));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment