Skip to content
Snippets Groups Projects
Commit 8df5de99 authored by cramakri's avatar cramakri
Browse files

Conditional support of iPad in the JsonRpc call

SVN: 26962
parent 57483b31
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,12 @@ NSString *const CISOBJsonRpcResponseObjectKey = @"CISOBJsonRpcResponseObjectKey" ...@@ -69,7 +69,12 @@ NSString *const CISOBJsonRpcResponseObjectKey = @"CISOBJsonRpcResponseObjectKey"
[request setValue:@"application/json" forHTTPHeaderField:@"Accept"]; [request setValue:@"application/json" forHTTPHeaderField:@"Accept"];
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[request setHTTPMethod:@"POST"]; [request setHTTPMethod:@"POST"];
[request setValue: [NSString stringWithFormat:@"%li", [httpBody length]] forHTTPHeaderField:@"Content-Legth"]; #if TARGET_OS_IPHONE
[request setValue: [NSString stringWithFormat:@"%i", [httpBody length]] forHTTPHeaderField:@"Content-Length"];
#else
[request setValue: [NSString stringWithFormat:@"%li", [httpBody length]] forHTTPHeaderField:@"Content-Length"];
#endif
[request setHTTPBody: httpBody]; [request setHTTPBody: httpBody];
// Check that the connection can be created // Check that the connection can be created
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment