See ChangeLog

Monotone-Parent: c81aed6c33ecd6c0b8b0babe93dd2b91b1c82e20
Monotone-Revision: fa74d98ba06edb4a99cc662ce175cbc2d92ced65

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-02-19T22:20:21
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2009-02-19 22:20:21 +00:00
parent dbb9765bf3
commit 6856608bd8
3 changed files with 3 additions and 5 deletions

View File

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

View File

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

View File

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