1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-11-15 03:20:18 +00:00

fixes in serialization

This commit is contained in:
2019-02-21 14:09:04 +08:00
parent 069d9c29a2
commit 2974a33e51
12 changed files with 108 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ class MultipartRequestCallFactory : KtorCallFactory {
when (value) {
is MultipartFile -> append(
key,
value.file.inputStream().asInput(),
value.file.asInput(),
Headers.build {
append(HttpHeaders.ContentType, value.mimeType)
append(HttpHeaders.ContentDisposition, "filename=${value.fileId}")