Skip to content

Commit

Permalink
Merge branch 'fix/1.4.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Feb 11, 2024
2 parents 2bfed9f + 78c7c13 commit 2236c65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fun HttpRequest.toApacheHttpRequest(): Pair<AsyncRequestProducer, Long> {
*(entity.trailers?.get()?.toTypedArray() ?: emptyArray())
)
}
is StringBody -> AsyncEntityProducers.create(body.value)
is StringBody -> AsyncEntityProducers.create(body.value, Charsets.UTF_8)
null -> null
else -> throw UnsupportedOperationException()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data class HttpRequest(
val extra: Any? = null
) {
fun getResolvedUri(): URI {
return URIBuilder(url)
return URIBuilder(url.replace(" ", "+"))
.run {
var b = this
queryParameters.forEach {
Expand All @@ -23,5 +23,6 @@ data class HttpRequest(
b
}
.build()
.let { URI.create(it.toASCIIString()) }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fun RequestEditorView(
val hasPayloadEditor = (request.application == ProtocolApplication.WebSocket
|| (request.application == ProtocolApplication.Grpc && currentGrpcMethod?.isClientStreaming == true)
)
var selectedPayloadExampleId by rememberLast(request.id) { mutableStateOf(request.payloadExamples?.firstOrNull()?.id) }
var selectedPayloadExampleId by rememberLast(request.id, request.application) { mutableStateOf(request.payloadExamples?.firstOrNull()?.id) }

val isEnableSendButton = when (connectionStatus.isConnectionActive()) {
true -> true
Expand Down

0 comments on commit 2236c65

Please sign in to comment.