Skip to content

Commit

Permalink
misc(providers): remove new line suffix in HttpClient response when…
Browse files Browse the repository at this point in the history
… logging it
  • Loading branch information
ArtificialPB committed Dec 10, 2024
1 parent 7c125d5 commit fc040ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class HttpClient(
// reading from response body consumes it, so we need to create a new one
val arr = stream.readAllBytes()
stream = ByteArrayInputStream(arr)
"Batch response: ${String(arr)}"
"Batch response: ${String(arr)}".removeSuffix("\n")
}

if (!it.isSuccessful) {
Expand Down Expand Up @@ -195,7 +195,7 @@ class HttpClient(
// reading from response body consumes it, so we need to create a new one
val arr = stream.readAllBytes()
stream = ByteArrayInputStream(arr)
"Response: ${String(arr)}"
"Response: ${String(arr)}".removeSuffix("\n")
}

if (!it.isSuccessful) {
Expand Down

0 comments on commit fc040ad

Please sign in to comment.