fix http body logging of NSURLSession
This commit is contained in:
parent
1c47f0a792
commit
4c6e55509f
|
|
@ -64,7 +64,7 @@ func convertURLRequestToCurlCommand(request: NSURLRequest) -> String {
|
|||
if request.HTTPMethod == "POST" && request.HTTPBody != nil {
|
||||
let maybeBody = NSString(data: request.HTTPBody!, encoding: NSUTF8StringEncoding) as? String
|
||||
if let body = maybeBody {
|
||||
returnValue += "-d \"\(body)\""
|
||||
returnValue += "-d \"\(escapeTerminalString(body))\" "
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue