Skip to content

Commit c4833b2

Browse files
authored
Merge pull request #165 from simple-robot/dev/fix-164
fix(api): 修复 CreateAssetApi 使用的错误请求头
2 parents b0fb96c + f0a0fe0 commit c4833b2

File tree

1 file changed

+1
-1
lines changed
  • simbot-component-kook-api/src/commonMain/kotlin/love/forte/simbot/kook/api/asset

1 file changed

+1
-1
lines changed

simbot-component-kook-api/src/commonMain/kotlin/love/forte/simbot/kook/api/asset/CreateAssetApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class CreateAssetApi private constructor(
5151
private const val DEFAULT_FILENAME = "unknown-file"
5252
private const val ASSET_API_FORM_PROPERTY_NAME = "file"
5353
private val HEADERS = Headers.build {
54-
append(HttpHeaders.ContentType, "form-data")
54+
append(HttpHeaders.ContentType, ContentType.MultiPart.FormData)
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)