apache / apache/apisix-java-plugin-runner

bug: POST request with body contain chinese characters exist encoding problem

オープン
#154 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Java
スター
152
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

### Issue description

### Environment

apisix-java-plugin-runner version:0.2.0
apsix version:2.13.1

### Minimal test code / Steps to reproduce the issue

1. Test post request contain chinese characters in OKHttp:
`{"source":"高德地图","content":"https://surl.amap.com/1PoSAsa1l4Ud","deviceId":"123456"}`
2. inner OKHttp,body will be translated to utf-8 format bytes:
`Charset charset = Util.UTF_8;
byte[] bytes = content.getBytes(charset);
`
4. Custom filter in apisix-java-plugin-runner, get request body:
`{"source":"高德地图","content":"https://surl.amap.com/1PoSAsa1l4Ud","deviceId":"123456"}`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。