Monotone-Parent: 9b3a8a4c66cfa9329c941f7789f248573edff6ac

Monotone-Revision: bcb224398f8aef1d62aad42e31635b91c0c993f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-03-09T20:29:17
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-03-09 20:29:17 +00:00
parent 8de0a61998
commit 2b03a58b9d
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2010-03-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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.

View File

@ -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