From 6d13d2347cecdaed879841afcafdd865ec78d8ff Mon Sep 17 00:00:00 2001 From: C Robert Date: Tue, 22 Sep 2009 17:25:00 +0000 Subject: [PATCH] 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 --- UI/Contacts/UIxContactFolderActions.m | 2 +- UI/Scheduler/UIxCalFolderActions.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/Contacts/UIxContactFolderActions.m b/UI/Contacts/UIxContactFolderActions.m index 9f53dd195..76d1f9094 100644 --- a/UI/Contacts/UIxContactFolderActions.m +++ b/UI/Contacts/UIxContactFolderActions.m @@ -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"]; diff --git a/UI/Scheduler/UIxCalFolderActions.m b/UI/Scheduler/UIxCalFolderActions.m index 7b75d9e77..a2ae01fe3 100644 --- a/UI/Scheduler/UIxCalFolderActions.m +++ b/UI/Scheduler/UIxCalFolderActions.m @@ -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"];