From c4286b952b240b6d36e46b7ad28254b8ad220fd0 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 12 Mar 2009 20:59:21 +0000 Subject: [PATCH] Fix for Firefox and nginx Monotone-Parent: 1493f36a1d4949d61e2af0b02cdc11d672b14313 Monotone-Revision: 01b9ae40e54cf048f707552dd1ec645189b4abf1 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-03-12T20:59:21 Monotone-Branch: ca.inverse.sogo --- UI/Contacts/UIxContactFoldersView.m | 2 +- UI/MainUI/SOGoUserHomePage.m | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m index 437dd1550..ba34a735c 100644 --- a/UI/Contacts/UIxContactFoldersView.m +++ b/UI/Contacts/UIxContactFoldersView.m @@ -270,7 +270,7 @@ withSearchOn: (NSString *) contact data = [NSDictionary dictionaryWithObjectsAndKeys: searchText, @"searchText", contacts, @"contacts", nil]; - result = [context response]; + result = [self responseWithStatus: 200]; [(WOResponse*)result appendContentString: [data jsonRepresentation]]; } else diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index ea6e8e0be..72d860e0e 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -243,8 +243,7 @@ static NSString *LDAPContactInfoAttribute = nil; { WOResponse *response; - response = [context response]; - [response setStatus: 200]; + response = [self responseWithStatus: 200]; // [response setHeader: @"text/plain; charset=iso-8859-1" // forKey: @"Content-Type"]; [response appendContentString: [self _freeBusyAsText]];