From 419e7070ee7094141280bb0915e4bf26b8f6af04 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 27 Dec 2021 17:02:00 +0600 Subject: [PATCH] more fixes to god of fixes --- CHANGELOG.md | 3 ++- .../inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f538f5039bd..9a1c7c583fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ * `Ktor`: * `Server`: * Fixes in `uniloadMultipart` - + * `Client`: + * Fixes in `unimultipart` * `FSM`: * Fixes in `DefaultUpdatableStatesMachine` diff --git a/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt b/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt index e6725a2ed24..0cc8af023aa 100644 --- a/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt +++ b/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt @@ -140,7 +140,7 @@ suspend fun HttpClient.unimultipart( inputProvider, Headers.build { append(HttpHeaders.ContentType, mimetype) - append(HttpHeaders.ContentDisposition, "filename=$filename") + append(HttpHeaders.ContentDisposition, "filename=\"$filename\"") dataHeadersBuilder() } )