|
@@ -28,12 +28,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (request.HTTPBody) {
|
|
if (request.HTTPBody) {
|
|
|
- if ([request.allHTTPHeaderFields[@"Content-Length"] intValue] < 1024) {
|
|
|
|
|
- [curlCommandString appendFormat:@"-d \'%@\'",
|
|
|
|
|
- [[NSString alloc] initWithData:request.HTTPBody encoding:NSUTF8StringEncoding]];
|
|
|
|
|
- } else {
|
|
|
|
|
- [curlCommandString appendFormat:@"[TOO MUCH DATA TO INCLUDE]"];
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ [curlCommandString appendFormat:@"-d \'%@\'", [[NSString alloc] initWithData:request.HTTPBody encoding:NSUTF8StringEncoding]];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return curlCommandString;
|
|
return curlCommandString;
|