mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
MultipartRequestCallFactory improvements
This commit is contained in:
parent
3a61b522ab
commit
5d6ba0f59e
@ -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
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user