Monotone-Parent: 93779224f1891bfde67faa42b4360c0b2ee910e3

Monotone-Revision: e1d773b231903817edb0d556fee132ccd592c4a4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-03-18T18:33:10
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-03-18 18:33:10 +00:00
parent 0f8885a083
commit e38eb48a6b
3 changed files with 16 additions and 4 deletions
+5 -3
View File
@@ -171,7 +171,7 @@
- (WOResponse *) _responseForResults: (NSArray *) results
{
WOResponse *response;
NSString *email, *responseString;
NSString *email, *responseString, *uid;
NSDictionary *result;
response = [context response];
@@ -182,9 +182,11 @@
if (!result)
result = [results objectAtIndex: 0];
email = [self _emailForResult: result];
uid = [result objectForKey: @"c_uid"];
if ([uid length] == 0)
uid = @"";
responseString = [NSString stringWithFormat: @"%@:%@",
[result objectForKey: @"c_uid"],
email];
uid, email];
[response setStatus: 200];
[response setHeader: @"text/plain; charset=iso-8859-1"
forKey: @"Content-Type"];