midway-fatcms 0.0.1-beta.37 → 0.0.1-beta.38

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.
@@ -70,6 +70,7 @@ let ProxyApiService = class ProxyApiService extends ApiBaseService_1.ApiBaseServ
70
70
  ...ctx.headers,
71
71
  host: targetUrl.host, // 设置正确的 host
72
72
  };
73
+ delete headers['content-length'];
73
74
  this.setRequestHeaders(headers, proxyApiEntity);
74
75
  const axiosParams = {
75
76
  method: ctx.method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midway-fatcms",
3
- "version": "0.0.1-beta.37",
3
+ "version": "0.0.1-beta.38",
4
4
  "description": "This is a midway component sample",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",