Permalink
Browse files

Fixes Content-Length string format argument.

  • Loading branch information...
1 parent f47e663 commit 468d861255e2c568f1c91dc577f72d31a377507b Igor Sutton Lopes committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 TKTumblr.m
View
@@ -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:@"%ld", [postBody length]] forHTTPHeaderField:@"Content-Length"];
+ [theURLRequest setValue:[NSString stringWithFormat:@"%d", [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 468d861

Please sign in to comment.