Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RxCocoa/Foundation/URLSession+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ private func convertURLRequestToCurlCommand(_ request: URLRequest) -> String {
for (key, value) in request.allHTTPHeaderFields ?? [:] {
let escapedKey = escapeTerminalString(key as String)
let escapedValue = escapeTerminalString(value as String)
returnValue += "\n -H \"\(escapedKey): \(escapedValue)\" "
returnValue += "\\\n -H \"\(escapedKey): \(escapedValue)\" "
}

let URLString = request.url?.absoluteString ?? "<unknown url>"

returnValue += "\n\"\(escapeTerminalString(URLString))\""
returnValue += "\\\n\"\(escapeTerminalString(URLString))\""

returnValue += " -i -v"

Expand Down