From 4c6e55509fb3a181a28c61daeb20cfc1e466bf4c Mon Sep 17 00:00:00 2001 From: f-kubotar Date: Tue, 5 Jan 2016 00:02:05 +0900 Subject: [PATCH] fix http body logging of NSURLSession --- RxCocoa/Common/Observables/NSURLSession+Rx.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))\" " } }