Skip to content

Commit 96dca0a

Browse files
committed
Content-Type workaround for Pipecat Cloud compat
1 parent dbb4831 commit 96dca0a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.1
2+
3+
- Changed content type `startBot()` POST request for compatibility reasons
4+
15
# 1.0.0
26

37
- Added:

pipecat-client-android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ publishing {
6060
register<MavenPublication>("release") {
6161
groupId = "ai.pipecat"
6262
artifactId = "client"
63-
version = "1.0.0"
63+
version = "1.0.1"
6464

6565
pom {
6666
name.set("Pipecat Client")

pipecat-client-android/src/main/java/ai/pipecat/client/PipecatClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ open class PipecatClient<TransportType : Transport<ConnectParams>, ConnectParams
280280
thread = thread,
281281
url = startBotParams.endpoint,
282282
body = JSON_INSTANCE.encodeToString(startBotParams.requestData)
283+
.toByteArray() // Needed to avoid adding charset (which PCC doesn't support)
283284
.toRequestBody("application/json".toMediaType()),
284285
customHeaders = startBotParams.headers.toList(),
285286
timeoutMs = startBotParams.timeoutMs

0 commit comments

Comments
 (0)