diff --git a/RxCocoa/Common/Observables/NSURLSession+Rx.swift b/RxCocoa/Common/Observables/NSURLSession+Rx.swift index fae54fb0..9317e820 100644 --- a/RxCocoa/Common/Observables/NSURLSession+Rx.swift +++ b/RxCocoa/Common/Observables/NSURLSession+Rx.swift @@ -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))\" " } }