api-render-ui 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-render-ui",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "api-render-ui is a UI library that pursues simple and efficient data rendering for openapi.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1136,7 +1136,7 @@ function sendRequest(apiOperator: any, responseSectionRef: any) {
1136
1136
  fetch(reuqestUrl, {
1137
1137
  method: apiInfo.method.toUpperCase(),
1138
1138
  headers: headers,
1139
- body: body,
1139
+ body: ['GET', 'HEAD'].includes(apiInfo.method.toUpperCase()) ? null : body,
1140
1140
  signal: signal
1141
1141
  })
1142
1142
  .then(response => {