Skip to content

Commit

Permalink
Fix Chinese garbled code issue when HTTP post input parameter is param (
Browse files Browse the repository at this point in the history
#4860)

* upgrade the version to 1.4.0

* upgrade the version to 1.4.0

* Fix Chinese garbled code issue when HTTP post input parameter is param

* upgrade the version to 1.5.0-SNAPSHOT

* upgrade the version to 1.5.0-SNAPSHOT

---------

Co-authored-by: Casion <[email protected]>
Co-authored-by: peacewong <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2023
1 parent 1dd22bc commit abbcb73
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
TAG: ${{ github.sha }}
SKIP_TEST: true
HUB: ghcr.io/apache/linkis
LINKIS_VERSION: 1.4.0-SNAPSHOT
LINKIS_VERSION: 1.5.0-SNAPSHOT
steps:
- name: Free up disk space
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
TAG: ${{ github.sha }}
SKIP_TEST: true
HUB: ghcr.io/apache/linkis
LINKIS_VERSION: 1.4.0-SNAPSHOT
LINKIS_VERSION: 1.5.0-SNAPSHOT
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import org.apache.http.message.BasicNameValuePair
import org.apache.http.util.EntityUtils

import java.net.URI
import java.nio.charset.Charset
import java.util
import java.util.Locale

Expand Down Expand Up @@ -285,7 +286,7 @@ abstract class AbstractHttpClient(clientConfig: ClientConfig, clientName: String
if (v != null) nameValuePairs.add(new BasicNameValuePair(k, v.toString))
}
}
httpPut.setEntity(new UrlEncodedFormEntity(nameValuePairs))
httpPut.setEntity(new UrlEncodedFormEntity(nameValuePairs, Charset.defaultCharset))
}

if (StringUtils.isNotBlank(put.getRequestPayload)) {
Expand Down Expand Up @@ -343,7 +344,7 @@ abstract class AbstractHttpClient(clientConfig: ClientConfig, clientName: String
post.getParameters.asScala.foreach { case (k, v) =>
if (v != null) nvps.add(new BasicNameValuePair(k, v.toString))
}
httpPost.setEntity(new UrlEncodedFormEntity(nvps))
httpPost.setEntity(new UrlEncodedFormEntity(nvps, Charset.defaultCharset))
} else if (post.getFormParams.asScala.nonEmpty) {
post.getFormParams.asScala.foreach { case (k, v) =>
if (v != null) nvps.add(new BasicNameValuePair(k, v.toString))
Expand Down
2 changes: 1 addition & 1 deletion linkis-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkis",
"version": "1.3.2",
"version": "1.4.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</snapshotRepository>
</distributionManagement>
<properties>
<revision>1.4.0-SNAPSHOT</revision>
<revision>1.5.0-SNAPSHOT</revision>

<zookeeper.version>3.5.9</zookeeper.version>
<curator.version>4.2.0</curator.version>
Expand Down

0 comments on commit abbcb73

Please sign in to comment.