Skip to content

Conversation

@zhenxianyimeng
Copy link
Contributor

Describe what this PR does / why we need it

support Chinese rules in sentinel console

Does this pull request fix one issue?

Fixes #943

Describe how you did it

change UrlEncodedFormEntity with utf-8

The client will get: content-type: application/x-www-form-urlencoded; charset=utf-8

change the judge equals to "application/x-www-form-urlencoded"

Describe how to verify it

sentinel-demo-spring-webmvc as a client
run client and console, add chinese rules

Special notes for reviews

@codecov-io
Copy link

codecov-io commented Dec 18, 2019

Codecov Report

Merging #1207 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1207      +/-   ##
============================================
- Coverage     43.06%   43.05%   -0.02%     
+ Complexity     1571     1570       -1     
============================================
  Files           337      337              
  Lines          9888     9888              
  Branches       1334     1334              
============================================
- Hits           4258     4257       -1     
  Misses         5101     5101              
- Partials        529      530       +1
Impacted Files Coverage Δ Complexity Δ
...p/sentinel/datasource/consul/ConsulDataSource.java 65.21% <0%> (-4.35%) 7% <0%> (ø)
...ava/com/alibaba/csp/sentinel/node/ClusterNode.java 96.55% <0%> (-3.45%) 10% <0%> (-1%)
...a/csp/sentinel/slots/statistic/base/LeapArray.java 70.29% <0%> (+2.97%) 34% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a63c184...078ff38. Read the comment docs.

@sczyh30 sczyh30 added the to-review To review label Dec 19, 2019
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sczyh30 sczyh30 added the kind/enhancement Category issues or prs related to enhancement. label Dec 19, 2019
@sczyh30 sczyh30 merged commit 50f3080 into alibaba:master Dec 19, 2019
@sczyh30
Copy link
Member

sczyh30 commented Dec 19, 2019

Thanks for contributing!

@sczyh30 sczyh30 removed the to-review To review label Dec 19, 2019
@sczyh30 sczyh30 added this to the 1.7.1 milestone Dec 19, 2019
@sczyh30 sczyh30 added the kind/bug Category issues or prs related to bug. label Dec 20, 2019
sczyh30 pushed a commit that referenced this pull request Jan 19, 2020
…ST request (#1260)

* Better compatibility of the dashboard to legacy and new sentinel-transport-simple-http (on Content-Type header), related to #1207
hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
…coding in SentinelApiClient (alibaba#1207)

* Fix content-type parsing bug in `sentinel-transport-simple-http` module
* Change the charset of UrlEncodedFormEntity to UTF-8 in SentinelApiClient of the dashboard to support non-ASCII characters
hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
…ST request (alibaba#1260)

* Better compatibility of the dashboard to legacy and new sentinel-transport-simple-http (on Content-Type header), related to alibaba#1207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Category issues or prs related to bug. kind/enhancement Category issues or prs related to enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console add rules Chinese garbled Console add rules Chinese garbled

3 participants