-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[ISSUE #943]Fix Console add rules Chinese garbled #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #943]Fix Console add rules Chinese garbled #1207
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
...simple-http/src/main/java/com/alibaba/csp/sentinel/transport/command/http/HttpEventTask.java
Outdated
Show resolved
Hide resolved
sczyh30
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks for contributing! |
…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
…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
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