diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index f667557..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0c8976 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ + +*.xccheckout +*.xcuserstate +*.xcscheme +*.plist + +.DS_Store diff --git a/JSONRPC Tester/JSONRPCService.m b/JSONRPC Tester/JSONRPCService.m index 9f828bf..fe0288a 100644 --- a/JSONRPC Tester/JSONRPCService.m +++ b/JSONRPC Tester/JSONRPCService.m @@ -44,9 +44,9 @@ -(void) execMethod:(NSString*)methodName andParams:(NSArray*)parameters withID:( //prepare http body [request setHTTPMethod: @"POST"]; - [request setValue:[NSString stringWithFormat:@"%d", [requestData length]] forHTTPHeaderField:@"Content-Length"]; + [request setValue:[NSString stringWithFormat:@"%lu", (unsigned long)[requestData length]] forHTTPHeaderField:@"Content-Length"]; [request setValue:@"application/json" forHTTPHeaderField:@"Accept"]; - [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"]; + [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; [request setHTTPBody: requestData]; if (urlConnection != nil) { diff --git a/README.md b/README.md index 915e10f..e6ea63a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +This branch is a fix for the application created by @mladjan_antic + JSONRPC Tester is a simple osx app for testing JSONRPC Web services. ![Add Submodule](http://f.cl.ly/items/3y2M0x2B0F2w3u2d391s/Screen%20Shot%202011-12-11%20at%205.47.35%20PM.png) @@ -6,4 +8,4 @@ It's free for commercial and non-comercial use. Author: Mladjan Antic @mladjan_antic -mladjanantic.com \ No newline at end of file +mladjanantic.com