Permalink
Browse files

Fixed crash when sending immutable dictionary as params

  • Loading branch information...
1 parent b368c25 commit 2bdff5e3c3efb11c2fdd543f8c217535ca05d50f @orarbel orarbel committed Jun 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 MobliConnect/Mobli.m
View
@@ -512,6 +512,9 @@ - (MobliRequest *)postImage:(UIImage *)image
if (!params) {
params = [NSMutableDictionary dictionary];
}
+ else {
+ params = [NSMutableDictionary dictionaryWithDictionary:params];
+ }
[params setValue:imgForUpload forKey:@"file"];
[params setValue:@"photo" forKey:@"type"];

0 comments on commit 2bdff5e

Please sign in to comment.