Merge pull request #384 from hadashiA/fix-http-body-logging

Fix http body logging of NSURLSession
This commit is contained in:
Krunoslav Zaher 2016-01-04 22:03:08 +01:00
commit 61cbebeef0
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))\" "
}
}