|
|
@@ -327,10 +327,7 @@ extension Request: CustomDebugStringConvertible {
|
|
|
components.append("-H \"\(field): \(value)\"")
|
|
|
}
|
|
|
|
|
|
- if
|
|
|
- let httpBodyData = request.httpBody,
|
|
|
- let httpBody = String(data: httpBodyData, encoding: String.Encoding.utf8)
|
|
|
- {
|
|
|
+ if let httpBodyData = request.httpBody, let httpBody = String(data: httpBodyData, encoding: .utf8) {
|
|
|
var escapedBody = httpBody.replacingOccurrences(of: "\\\"", with: "\\\\\"")
|
|
|
escapedBody = escapedBody.replacingOccurrences(of: "\"", with: "\\\"")
|
|
|
|