Skip to content

Commit

Permalink
fix(#79-support-search): add content-type default header
Browse files Browse the repository at this point in the history
  • Loading branch information
y9Kap committed Oct 30, 2023
1 parent 38b4494 commit 2655a8a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import io.ktor.client.call.*
import io.ktor.client.plugins.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.plugins.websocket.*
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.utils.io.errors.*
import io.rsocket.kotlin.ktor.client.RSocketSupport
import kotlinx.coroutines.CancellationException
Expand All @@ -45,7 +47,9 @@ public class KtorMeetacyEngine(
ignoreUnknownKeys = true
}
}

defaultRequest {
header(HttpHeaders.ContentType, ContentType.Application.Json.toString())
}
expectSuccess = true
install(WebSockets)
install(RSocketSupport)
Expand Down

0 comments on commit 2655a8a

Please sign in to comment.