mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-30 09:19:28 +00:00
Changed mime type in exports to application/octet-stream to force download
Monotone-Parent: 887faee9965f210d3622bac3e22440794bfd1ed5 Monotone-Revision: a7565fd16a0a5f39c9bb989e155f95c0e6108cc1 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-22T17:25:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
filename = [NSString stringWithFormat: @"attachment;filename=\"%@.ldif\"",
|
||||
[folder displayName]];
|
||||
response = [context response];
|
||||
[response setHeader: @"text/directory; charset=utf-8"
|
||||
[response setHeader: @"application/octet-stream; charset=utf-8"
|
||||
forKey: @"content-type"];
|
||||
[response setHeader: filename
|
||||
forKey: @"Content-Disposition"];
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
filename = [NSString stringWithFormat: @"attachment;filename=\"%@.ics\"",
|
||||
[folder displayName]];
|
||||
[response setHeader: @"text/calendar; charset=utf-8"
|
||||
[response setHeader: @"application/octet-stream; charset=utf-8"
|
||||
forKey:@"content-type"];
|
||||
[response setHeader: filename
|
||||
forKey: @"Content-Disposition"];
|
||||
|
||||
Reference in New Issue
Block a user