Skip to content

Commit

Permalink
fix: escape \r in curl logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rybalkinsd committed Aug 5, 2019
1 parent 60c09ea commit 757155e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CurlLoggingStrategy : LoggingStrategy {
val data = Buffer().use {
body.writeTo(it)
it.readUtf8().replace("\n", "\\n")
.replace("\r", "\\r")
}
return " --data $'$data'"
}
Expand Down

0 comments on commit 757155e

Please sign in to comment.