1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

MultipartRequestCallFactory improvements

This commit is contained in:
InsanusMokrassar 2021-09-08 20:05:53 +06:00
parent 3a61b522ab
commit 5d6ba0f59e
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,9 @@
* `Version`:
* `MicroUtils`: `0.5.24` -> `0.5.25`
* `UUID`: `0.3.0` -> `0.3.1`
* `Core`:
* `MultipartRequestCallFactory` now will use file name as multipart `filename` parameter instead of generated
filename
## 0.35.7

View File

@ -24,7 +24,7 @@ class MultipartRequestCallFactory : AbstractRequestCallFactory() {
is MultipartFile -> appendInput(
key,
Headers.build {
append(HttpHeaders.ContentDisposition, "filename=${value.fileId}")
append(HttpHeaders.ContentDisposition, "filename=${value.filename}")
},
block = value.file::input
)