Skip to content
Browse files

Fixes Content-Length string format argument.

  • Loading branch information...
1 parent b98f7f3 commit f47e6635934acf0bd1ef609f33f99fc524bf45a0 Igor Sutton Lopes committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 TKTumblr.m
View
2 TKTumblr.m
@@ -89,7 +89,7 @@ - (BOOL)uploadPost:(TKPost *)thePost withDomain:(NSString *)theDomain
[theURLRequest setHTTPMethod:@"POST"];
[theURLRequest setValue:@"8bit" forHTTPHeaderField:@"Content-Transfer-Encoding"];
- [theURLRequest setValue:[NSString stringWithFormat:@"%d", [postBody length]] forHTTPHeaderField:@"Content-Length"];
+ [theURLRequest setValue:[NSString stringWithFormat:@"%ld", [postBody length]] forHTTPHeaderField:@"Content-Length"];
[theURLRequest setValue:[NSString stringWithFormat:@"multipart/form-data; boundary=%@", [NSString MIMEBoundary]] forHTTPHeaderField:@"Content-Type"];
[theURLRequest setHTTPBody:postBody];

0 comments on commit f47e663

Please sign in to comment.
Something went wrong with that request. Please try again.