(fix) small code refactoring

This commit is contained in:
Ludovic Marcotte 2015-08-28 20:11:21 -04:00
parent 3fdabf8671
commit fb4889a15e
2 changed files with 3 additions and 6 deletions

View file

@ -883,7 +883,7 @@
data = [NSDictionary dictionaryWithObjectsAndKeys: data = [NSDictionary dictionaryWithObjectsAndKeys:
@"No UID specified", @"error", nil]; @"No UID specified", @"error", nil];
return [self responseWithStatus: 404 /* Not Found */ return [self responseWithStatus: 404 /* Not Found */
andString: [data jsonRepresentation]]; andString: [data jsonRepresentation]];
} }
uids = [data objectForKey: @"uids"]; uids = [data objectForKey: @"uids"];

View file

@ -124,11 +124,8 @@
NSString *s; NSString *s;
s = [self mailAccounts]; s = [self mailAccounts];
response = [self responseWithStatus: 200]; response = [self responseWithStatus: 200
andString: s];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: s];
return response; return response;
} }