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
maint-2.0.2
C Robert 2009-09-22 17:25:00 +00:00
parent ced6bfdeee
commit 6d13d2347c
2 changed files with 2 additions and 2 deletions

View File

@ -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"];

View File

@ -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"];