diff --git a/UI/Common/WODirectAction+SOGo.m b/UI/Common/WODirectAction+SOGo.m index 91b406db3..d6395ad33 100644 --- a/UI/Common/WODirectAction+SOGo.m +++ b/UI/Common/WODirectAction+SOGo.m @@ -39,6 +39,8 @@ response = [context response]; [response setStatus: status]; + [response setHeader: @"text/plain; charset=utf-8" + forKey: @"Content-Type"]; return response; } @@ -66,8 +68,6 @@ WOResponse *response; response = [self responseWithStatus: 204]; - [response setHeader: @"text/plain; charset=utf-8" - forKey: @"Content-Type"]; return response; } diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m index 106e0bc43..437dd1550 100644 --- a/UI/Contacts/UIxContactFoldersView.m +++ b/UI/Contacts/UIxContactFoldersView.m @@ -243,7 +243,7 @@ withSearchOn: (NSString *) contact data = [NSDictionary dictionaryWithObjectsAndKeys: searchText, @"searchText", sortedContacts, @"contacts", nil]; - result = [context response]; + result = [self responseWithStatus: 200]; [(WOResponse*)result appendContentString: [data jsonRepresentation]]; } else diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 3667ce6c2..c91b3c3aa 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -296,8 +296,6 @@ static NSArray *tasksFields = nil; WOResponse *response; response = [self responseWithStatus: 200]; - [response setHeader: @"text/plain; charset=utf-8" - forKey: @"content-type"]; [response appendContentString: [data jsonRepresentation]]; return response;