Skip to content
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

There is a parameter encoding error in the POST request. #19

Closed
liukeqing opened this issue Sep 28, 2022 · 0 comments
Closed

There is a parameter encoding error in the POST request. #19

liukeqing opened this issue Sep 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@liukeqing
Copy link

liukeqing commented Sep 28, 2022

Expected Behavior(您期望的结果)

When making a POST request, the Chinese parameters in the request body should not be URLEncoded.
post请求的时候,请求体中的中文参数,不要被URLEncode。

Current Behavior(当前结果)

When initiating a POST request, the Chinese parameters in the request body are being URLEncoded, causing the backend interface to receive the parameters incorrectly.
发起post请求的时候,请求体的中文参数被URLEncode。导致后端接口接收参数错误。

Possible Solution(bug解决建议)

GET requests can encode parameters, but POST requests do not need to be encoded.
get请求可以把参数编码,但是post请求不用编码。

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)

Context(Bug影响描述)

Your Environment(您的使用环境)

  • smart-doc version:
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): 2.5.3
  • build tool version(maven or gradle):
@liukeqing liukeqing added the bug Something isn't working label Sep 28, 2022
shalousun added a commit to TongchengOpenSource/smart-doc that referenced this issue Oct 2, 2022
@shalousun shalousun changed the title Post请求中文参数编码错误 There is a parameter encoding error in the POST request. Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants