Skip to content

Commit be8e555

Browse files
committed
fix jitpack build problem
1 parent 5dbd327 commit be8e555

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/io/cutebot/telegram/client/TelegramApi.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ class TelegramApi {
199199
private fun execute(request: HttpRequestBase): BufferedEntity {
200200
val response = httpClient.execute(request)
201201

202-
val content = response.entity.content.readAllBytes()
202+
val content = response.entity.content.reader().readText()
203203

204-
log.debug("RESPONSE {}", String(content))
204+
log.debug("RESPONSE {}", content)
205205

206-
return BufferedEntity(response.statusLine.statusCode, content)
206+
return BufferedEntity(response.statusLine.statusCode, content.toByteArray())
207207
}
208208

209209
private fun getUrl(token: String, methodName: String): String {

0 commit comments

Comments
 (0)