diff --git a/ChangeLog b/ChangeLog index a5fe07334..ca5a7531a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-03-09 Wolfgang Sourdeau + * UI/SOGoUI/UIxComponent.m + (-responseWithStatus:andJSONRepresentation:): we now add the + "application/json" content type to the response object. + * UI/MainUI/SOGoUserHomePage.m (_usersResponseForResults:): we now return a JSON response with an encoded array of arrays. diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index 922740326..df69cb541 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -616,8 +616,13 @@ static NSMutableArray *abbrMonthLabelKeys = nil; - (WOResponse *) responseWithStatus: (unsigned int) status andJSONRepresentation: (NSObject *) contentObject; { - return [self responseWithStatus: status - andString: [contentObject jsonRepresentation]]; + WOResponse *response; + + response = [self responseWithStatus: status + andString: [contentObject jsonRepresentation]]; + [response setHeader: @"application/json" forKey: @"content-type"]; + + return response; } - (WOResponse *) responseWith204