mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
MultipartRequestCallFactory improvements
This commit is contained in:
parent
3a61b522ab
commit
5d6ba0f59e
@ -6,6 +6,9 @@
|
|||||||
* `Version`:
|
* `Version`:
|
||||||
* `MicroUtils`: `0.5.24` -> `0.5.25`
|
* `MicroUtils`: `0.5.24` -> `0.5.25`
|
||||||
* `UUID`: `0.3.0` -> `0.3.1`
|
* `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
|
## 0.35.7
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class MultipartRequestCallFactory : AbstractRequestCallFactory() {
|
|||||||
is MultipartFile -> appendInput(
|
is MultipartFile -> appendInput(
|
||||||
key,
|
key,
|
||||||
Headers.build {
|
Headers.build {
|
||||||
append(HttpHeaders.ContentDisposition, "filename=${value.fileId}")
|
append(HttpHeaders.ContentDisposition, "filename=${value.filename}")
|
||||||
},
|
},
|
||||||
block = value.file::input
|
block = value.file::input
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user