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