Permalink
Browse files

Don't start body with a '?'.

This fixes a bug where enableUpdatesFor: would fail with an erronous "Invalid / used nonce" error.
  • Loading branch information...
1 parent 742ab9c commit b4ca152915629c25bacc547d2fdf8ff540a6c14c Will Harris committed with stevestreza May 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 MGTwitterEngine.m
View
@@ -459,7 +459,7 @@ - (NSString *)_sendRequestWithMethod:(NSString *)method
}
if (_clientSourceToken) {
finalBody = [finalBody stringByAppendingString:[NSString stringWithFormat:@"%@source=%@",
- (body) ? @"&" : @"?" ,
+ (body) ? @"&" : @"" ,
_clientSourceToken]];
}

0 comments on commit b4ca152

Please sign in to comment.