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.sogomaint-2.0.2
parent
ced6bfdeee
commit
6d13d2347c
|
@ -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"];
|
||||
|
|
Loading…
Reference in New Issue