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

dubbo支持query转body #336

Merged
merged 2 commits into from
Nov 12, 2020
Merged

dubbo支持query转body #336

merged 2 commits into from
Nov 12, 2020

Conversation

SaberSola
Copy link
Contributor

BodyParamPlugin解析query参数转body

@@ -60,6 +61,9 @@ public BodyParamPlugin() {
.flatMap(body -> {
if (MediaType.APPLICATION_JSON.isCompatibleWith(mediaType)) {
exchange.getAttributes().put(Constants.DUBBO_PARAMS, body);
} else {
Copy link
Member

@yu199195 yu199195 Nov 11, 2020

Choose a reason for hiding this comment

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

这里应该还可以处理下form表单, from表达,是不是也包含在body里面,不需要加 mdiaType的判断呢?试一试

@yu199195
Copy link
Member

看看ci错误了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants