Monotone-Parent: 1dda8463cbff42910b1cacd540a640120d4d4939

Monotone-Revision: 56e8fb42c60b615f9c931f4b5e80a51560db4269

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-06T17:13:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-06 17:13:03 +00:00
parent 5ccfce7cdc
commit 533da99dcc
+4 -4
View File
@@ -33,14 +33,14 @@
@implementation UIxJSONPreferences
- (WOResponse *) _makeResponse: (NSString *) jsonText
- (WOResponse *) _makeResponse: (NSUserDefaults *) defaults
{
WOResponse *response;
response = [context response];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: jsonText];
[response appendContentString: [defaults jsonRepresentation]];
return response;
}
@@ -51,7 +51,7 @@
defaults = [[context activeUser] userDefaults];
return [self _makeResponse: [defaults jsonRepresentation]];
return [self _makeResponse: defaults];
}
- (WOResponse *) jsonSettingsAction
@@ -60,7 +60,7 @@
settings = [[context activeUser] userSettings];
return [self _makeResponse: [settings jsonRepresentation]];
return [self _makeResponse: settings];
}
@end