See ChangeLog
Monotone-Parent: c81aed6c33ecd6c0b8b0babe93dd2b91b1c82e20 Monotone-Revision: fa74d98ba06edb4a99cc662ce175cbc2d92ced65 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-02-19T22:20:21 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
dbb9765bf3
commit
6856608bd8
|
@ -39,6 +39,8 @@
|
||||||
|
|
||||||
response = [context response];
|
response = [context response];
|
||||||
[response setStatus: status];
|
[response setStatus: status];
|
||||||
|
[response setHeader: @"text/plain; charset=utf-8"
|
||||||
|
forKey: @"Content-Type"];
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -66,8 +68,6 @@
|
||||||
WOResponse *response;
|
WOResponse *response;
|
||||||
|
|
||||||
response = [self responseWithStatus: 204];
|
response = [self responseWithStatus: 204];
|
||||||
[response setHeader: @"text/plain; charset=utf-8"
|
|
||||||
forKey: @"Content-Type"];
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,7 +243,7 @@ withSearchOn: (NSString *) contact
|
||||||
data = [NSDictionary dictionaryWithObjectsAndKeys: searchText, @"searchText",
|
data = [NSDictionary dictionaryWithObjectsAndKeys: searchText, @"searchText",
|
||||||
sortedContacts, @"contacts",
|
sortedContacts, @"contacts",
|
||||||
nil];
|
nil];
|
||||||
result = [context response];
|
result = [self responseWithStatus: 200];
|
||||||
[(WOResponse*)result appendContentString: [data jsonRepresentation]];
|
[(WOResponse*)result appendContentString: [data jsonRepresentation]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -296,8 +296,6 @@ static NSArray *tasksFields = nil;
|
||||||
WOResponse *response;
|
WOResponse *response;
|
||||||
|
|
||||||
response = [self responseWithStatus: 200];
|
response = [self responseWithStatus: 200];
|
||||||
[response setHeader: @"text/plain; charset=utf-8"
|
|
||||||
forKey: @"content-type"];
|
|
||||||
[response appendContentString: [data jsonRepresentation]];
|
[response appendContentString: [data jsonRepresentation]];
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|
Loading…
Reference in New Issue