fix http body logging of NSURLSession

This commit is contained in:
f-kubotar 2016-01-05 00:02:05 +09:00
parent 1c47f0a792
commit 4c6e55509f
1 changed files with 1 additions and 1 deletions

View File

@ -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))\" "
}
}