From b4ca152915629c25bacc547d2fdf8ff540a6c14c Mon Sep 17 00:00:00 2001 From: Will Harris Date: Fri, 7 May 2010 00:54:14 +0800 Subject: [PATCH] Don't start body with a '?'. This fixes a bug where enableUpdatesFor: would fail with an erronous "Invalid / used nonce" error. --- MGTwitterEngine.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MGTwitterEngine.m b/MGTwitterEngine.m index d16e005..30a1912 100644 --- a/MGTwitterEngine.m +++ b/MGTwitterEngine.m @@ -459,7 +459,7 @@ - (NSString *)_sendRequestWithMethod:(NSString *)method } if (_clientSourceToken) { finalBody = [finalBody stringByAppendingString:[NSString stringWithFormat:@"%@source=%@", - (body) ? @"&" : @"?" , + (body) ? @"&" : @"" , _clientSourceToken]]; }