This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 55e0449 fix: get and head request did not contain bodyparams (#1239)
55e0449 is described below
commit 55e04494e6cafde51d60bad0e4ac722d4e2c8735
Author: liuxiran <[email protected]>
AuthorDate: Thu Jan 7 22:48:57 2021 +0800
fix: get and head request did not contain bodyparams (#1239)
---
web/src/pages/Route/components/DebugViews/DebugDrawView.tsx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/src/pages/Route/components/DebugViews/DebugDrawView.tsx
b/web/src/pages/Route/components/DebugViews/DebugDrawView.tsx
index 18b3d0e..daf516d 100644
--- a/web/src/pages/Route/components/DebugViews/DebugDrawView.tsx
+++ b/web/src/pages/Route/components/DebugViews/DebugDrawView.tsx
@@ -81,6 +81,9 @@ const DebugDrawView: React.FC<RouteModule.DebugDrawProps> =
(props) => {
let transformDataForm: string[];
let transformDataJson: object;
const formData: RouteModule.debugRequestParamsFormData[] =
bodyForm.getFieldsValue().params;
+ if (methodWithoutBody.includes(httpMethod)) {
+ return undefined
+ }
switch (bodyType) {
case 'x-www-form-urlencoded':
transformDataForm = (formData || [])